eval(function(p, a, c, k, e, r) {
    e = function(c) {
        return(c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36))
    };

    if (!''.replace(/^/, String)) {
        while (c--)
            r[e(c)] = k[c] || e(c);
        k = [function(e) {
                return r[e]
            }];
        e = function() {
            return'\\w+'
        };

        c = 1
    }
    ;
    while (c--)
        if (k[c])
            p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]);
    return p
}('(H(){J w=1b.4M,3m$=1b.$;J D=1b.4M=1b.$=H(a,b){I 2B D.17.5j(a,b)};J u=/^[^<]*(<(.|\\s)+>)[^>]*$|^#(\\w+)$/,62=/^.[^:#\\[\\.]*$/,12;D.17=D.44={5j:H(d,b){d=d||S;G(d.16){7[0]=d;7.K=1;I 7}G(1j d=="23"){J c=u.2D(d);G(c&&(c[1]||!b)){G(c[1])d=D.4h([c[1]],b);N{J a=S.61(c[3]);G(a){G(a.2v!=c[3])I D().2q(d);I D(a)}d=[]}}N I D(b).2q(d)}N G(D.1D(d))I D(S)[D.17.27?"27":"43"](d);I 7.6Y(D.2d(d))},5w:"1.2.6",8G:H(){I 7.K},K:0,3p:H(a){I a==12?D.2d(7):7[a]},2I:H(b){J a=D(b);a.5n=7;I a},6Y:H(a){7.K=0;2p.44.1p.1w(7,a);I 7},P:H(a,b){I D.P(7,a,b)},5i:H(b){J a=-1;I D.2L(b&&b.5w?b[0]:b,7)},1K:H(c,a,b){J d=c;G(c.1q==56)G(a===12)I 7[0]&&D[b||"1K"](7[0],c);N{d={};d[c]=a}I 7.P(H(i){R(c 1n d)D.1K(b?7.V:7,c,D.1i(7,d[c],b,i,c))})},1g:H(b,a){G((b==\'2h\'||b==\'1Z\')&&3d(a)<0)a=12;I 7.1K(b,a,"2a")},1r:H(b){G(1j b!="49"&&b!=U)I 7.4E().3v((7[0]&&7[0].2z||S).5F(b));J a="";D.P(b||7,H(){D.P(7.3t,H(){G(7.16!=8)a+=7.16!=1?7.76:D.17.1r([7])})});I a},5z:H(b){G(7[0])D(b,7[0].2z).5y().39(7[0]).2l(H(){J a=7;1B(a.1x)a=a.1x;I a}).3v(7);I 7},8Y:H(a){I 7.P(H(){D(7).6Q().5z(a)})},8R:H(a){I 7.P(H(){D(7).5z(a)})},3v:H(){I 7.3W(19,M,Q,H(a){G(7.16==1)7.3U(a)})},6F:H(){I 7.3W(19,M,M,H(a){G(7.16==1)7.39(a,7.1x)})},6E:H(){I 7.3W(19,Q,Q,H(a){7.1d.39(a,7)})},5q:H(){I 7.3W(19,Q,M,H(a){7.1d.39(a,7.2H)})},3l:H(){I 7.5n||D([])},2q:H(b){J c=D.2l(7,H(a){I D.2q(b,a)});I 7.2I(/[^+>] [^+>]/.11(b)||b.1h("..")>-1?D.4r(c):c)},5y:H(e){J f=7.2l(H(){G(D.14.1f&&!D.4n(7)){J a=7.6o(M),5h=S.3h("1v");5h.3U(a);I D.4h([5h.4H])[0]}N I 7.6o(M)});J d=f.2q("*").5c().P(H(){G(7[E]!=12)7[E]=U});G(e===M)7.2q("*").5c().P(H(i){G(7.16==3)I;J c=D.L(7,"3w");R(J a 1n c)R(J b 1n c[a])D.W.1e(d[i],a,c[a][b],c[a][b].L)});I f},1E:H(b){I 7.2I(D.1D(b)&&D.3C(7,H(a,i){I b.1k(a,i)})||D.3g(b,7))},4Y:H(b){G(b.1q==56)G(62.11(b))I 7.2I(D.3g(b,7,M));N b=D.3g(b,7);J a=b.K&&b[b.K-1]!==12&&!b.16;I 7.1E(H(){I a?D.2L(7,b)<0:7!=b})},1e:H(a){I 7.2I(D.4r(D.2R(7.3p(),1j a==\'23\'?D(a):D.2d(a))))},3F:H(a){I!!a&&D.3g(a,7).K>0},7T:H(a){I 7.3F("."+a)},6e:H(b){G(b==12){G(7.K){J c=7[0];G(D.Y(c,"2A")){J e=c.64,63=[],15=c.15,2V=c.O=="2A-2V";G(e<0)I U;R(J i=2V?e:0,2f=2V?e+1:15.K;i<2f;i++){J d=15[i];G(d.2W){b=D.14.1f&&!d.at.2x.an?d.1r:d.2x;G(2V)I b;63.1p(b)}}I 63}N I(7[0].2x||"").1o(/\\r/g,"")}I 12}G(b.1q==4L)b+=\'\';I 7.P(H(){G(7.16!=1)I;G(b.1q==2p&&/5O|5L/.11(7.O))7.4J=(D.2L(7.2x,b)>=0||D.2L(7.34,b)>=0);N G(D.Y(7,"2A")){J a=D.2d(b);D("9R",7).P(H(){7.2W=(D.2L(7.2x,a)>=0||D.2L(7.1r,a)>=0)});G(!a.K)7.64=-1}N 7.2x=b})},2K:H(a){I a==12?(7[0]?7[0].4H:U):7.4E().3v(a)},7b:H(a){I 7.5q(a).21()},79:H(i){I 7.3s(i,i+1)},3s:H(){I 7.2I(2p.44.3s.1w(7,19))},2l:H(b){I 7.2I(D.2l(7,H(a,i){I b.1k(a,i,a)}))},5c:H(){I 7.1e(7.5n)},L:H(d,b){J a=d.1R(".");a[1]=a[1]?"."+a[1]:"";G(b===12){J c=7.5C("9z"+a[1]+"!",[a[0]]);G(c===12&&7.K)c=D.L(7[0],d);I c===12&&a[1]?7.L(a[0]):c}N I 7.1P("9u"+a[1]+"!",[a[0],b]).P(H(){D.L(7,d,b)})},3b:H(a){I 7.P(H(){D.3b(7,a)})},3W:H(g,f,h,d){J e=7.K>1,3x;I 7.P(H(){G(!3x){3x=D.4h(g,7.2z);G(h)3x.9o()}J b=7;G(f&&D.Y(7,"1T")&&D.Y(3x[0],"4F"))b=7.3H("22")[0]||7.3U(7.2z.3h("22"));J c=D([]);D.P(3x,H(){J a=e?D(7).5y(M)[0]:7;G(D.Y(a,"1m"))c=c.1e(a);N{G(a.16==1)c=c.1e(D("1m",a).21());d.1k(b,a)}});c.P(6T)})}};D.17.5j.44=D.17;H 6T(i,a){G(a.4d)D.3Y({1a:a.4d,31:Q,1O:"1m"});N D.5u(a.1r||a.6O||a.4H||"");G(a.1d)a.1d.37(a)}H 1z(){I+2B 8J}D.1l=D.17.1l=H(){J b=19[0]||{},i=1,K=19.K,4x=Q,15;G(b.1q==8I){4x=b;b=19[1]||{};i=2}G(1j b!="49"&&1j b!="H")b={};G(K==i){b=7;--i}R(;i<K;i++)G((15=19[i])!=U)R(J c 1n 15){J a=b[c],2w=15[c];G(b===2w)6M;G(4x&&2w&&1j 2w=="49"&&!2w.16)b[c]=D.1l(4x,a||(2w.K!=U?[]:{}),2w);N G(2w!==12)b[c]=2w}I b};J E="4M"+1z(),6K=0,5r={},6G=/z-?5i|8B-?8A|1y|6B|8v-?1Z/i,3P=S.3P||{};D.1l({8u:H(a){1b.$=3m$;G(a)1b.4M=w;I D},1D:H(a){I!!a&&1j a!="23"&&!a.Y&&a.1q!=2p&&/^[\\s[]?H/.11(a+"")},4n:H(a){I a.1C&&!a.1c||a.2j&&a.2z&&!a.2z.1c},5u:H(a){a=D.3k(a);G(a){J b=S.3H("6w")[0]||S.1C,1m=S.3h("1m");1m.O="1r/4t";G(D.14.1f)1m.1r=a;N 1m.3U(S.5F(a));b.39(1m,b.1x);b.37(1m)}},Y:H(b,a){I b.Y&&b.Y.2r()==a.2r()},1Y:{},L:H(c,d,b){c=c==1b?5r:c;J a=c[E];G(!a)a=c[E]=++6K;G(d&&!D.1Y[a])D.1Y[a]={};G(b!==12)D.1Y[a][d]=b;I d?D.1Y[a][d]:a},3b:H(c,b){c=c==1b?5r:c;J a=c[E];G(b){G(D.1Y[a]){2U D.1Y[a][b];b="";R(b 1n D.1Y[a])1X;G(!b)D.3b(c)}}N{1U{2U c[E]}1V(e){G(c.5l)c.5l(E)}2U D.1Y[a]}},P:H(d,a,c){J e,i=0,K=d.K;G(c){G(K==12){R(e 1n d)G(a.1w(d[e],c)===Q)1X}N R(;i<K;)G(a.1w(d[i++],c)===Q)1X}N{G(K==12){R(e 1n d)G(a.1k(d[e],e,d[e])===Q)1X}N R(J b=d[0];i<K&&a.1k(b,i,b)!==Q;b=d[++i]){}}I d},1i:H(b,a,c,i,d){G(D.1D(a))a=a.1k(b,i);I a&&a.1q==4L&&c=="2a"&&!6G.11(d)?a+"2X":a},1F:{1e:H(c,b){D.P((b||"").1R(/\\s+/),H(i,a){G(c.16==1&&!D.1F.3T(c.1F,a))c.1F+=(c.1F?" ":"")+a})},21:H(c,b){G(c.16==1)c.1F=b!=12?D.3C(c.1F.1R(/\\s+/),H(a){I!D.1F.3T(b,a)}).6s(" "):""},3T:H(b,a){I D.2L(a,(b.1F||b).6r().1R(/\\s+/))>-1}},6q:H(b,c,a){J e={};R(J d 1n c){e[d]=b.V[d];b.V[d]=c[d]}a.1k(b);R(J d 1n c)b.V[d]=e[d]},1g:H(d,e,c){G(e=="2h"||e=="1Z"){J b,3X={30:"5x",5g:"1G",18:"3I"},35=e=="2h"?["5e","6k"]:["5G","6i"];H 5b(){b=e=="2h"?d.8f:d.8c;J a=0,2C=0;D.P(35,H(){a+=3d(D.2a(d,"57"+7,M))||0;2C+=3d(D.2a(d,"2C"+7+"4b",M))||0});b-=29.83(a+2C)}G(D(d).3F(":4j"))5b();N D.6q(d,3X,5b);I 29.2f(0,b)}I D.2a(d,e,c)},2a:H(f,l,k){J e,V=f.V;H 3E(b){G(!D.14.2k)I Q;J a=3P.54(b,U);I!a||a.52("3E")==""}G(l=="1y"&&D.14.1f){e=D.1K(V,"1y");I e==""?"1":e}G(D.14.2G&&l=="18"){J d=V.50;V.50="0 7Y 7W";V.50=d}G(l.1I(/4i/i))l=y;G(!k&&V&&V[l])e=V[l];N G(3P.54){G(l.1I(/4i/i))l="4i";l=l.1o(/([A-Z])/g,"-$1").3y();J c=3P.54(f,U);G(c&&!3E(f))e=c.52(l);N{J g=[],2E=[],a=f,i=0;R(;a&&3E(a);a=a.1d)2E.6h(a);R(;i<2E.K;i++)G(3E(2E[i])){g[i]=2E[i].V.18;2E[i].V.18="3I"}e=l=="18"&&g[2E.K-1]!=U?"2F":(c&&c.52(l))||"";R(i=0;i<g.K;i++)G(g[i]!=U)2E[i].V.18=g[i]}G(l=="1y"&&e=="")e="1"}N G(f.4g){J h=l.1o(/\\-(\\w)/g,H(a,b){I b.2r()});e=f.4g[l]||f.4g[h];G(!/^\\d+(2X)?$/i.11(e)&&/^\\d/.11(e)){J j=V.1A,66=f.65.1A;f.65.1A=f.4g.1A;V.1A=e||0;e=V.aM+"2X";V.1A=j;f.65.1A=66}}I e},4h:H(l,h){J k=[];h=h||S;G(1j h.3h==\'12\')h=h.2z||h[0]&&h[0].2z||S;D.P(l,H(i,d){G(!d)I;G(d.1q==4L)d+=\'\';G(1j d=="23"){d=d.1o(/(<(\\w+)[^>]*?)\\/>/g,H(b,a,c){I c.1I(/^(aK|4f|7E|aG|4T|7A|aB|3n|az|ay|av)$/i)?b:a+"></"+c+">"});J f=D.3k(d).3y(),1v=h.3h("1v");J e=!f.1h("<au")&&[1,"<2A 7w=\'7w\'>","</2A>"]||!f.1h("<ar")&&[1,"<7v>","</7v>"]||f.1I(/^<(aq|22|am|ak|ai)/)&&[1,"<1T>","</1T>"]||!f.1h("<4F")&&[2,"<1T><22>","</22></1T>"]||(!f.1h("<af")||!f.1h("<ad"))&&[3,"<1T><22><4F>","</4F></22></1T>"]||!f.1h("<7E")&&[2,"<1T><22></22><7q>","</7q></1T>"]||D.14.1f&&[1,"1v<1v>","</1v>"]||[0,"",""];1v.4H=e[1]+d+e[2];1B(e[0]--)1v=1v.5T;G(D.14.1f){J g=!f.1h("<1T")&&f.1h("<22")<0?1v.1x&&1v.1x.3t:e[1]=="<1T>"&&f.1h("<22")<0?1v.3t:[];R(J j=g.K-1;j>=0;--j)G(D.Y(g[j],"22")&&!g[j].3t.K)g[j].1d.37(g[j]);G(/^\\s/.11(d))1v.39(h.5F(d.1I(/^\\s*/)[0]),1v.1x)}d=D.2d(1v.3t)}G(d.K===0&&(!D.Y(d,"3V")&&!D.Y(d,"2A")))I;G(d[0]==12||D.Y(d,"3V")||d.15)k.1p(d);N k=D.2R(k,d)});I k},1K:H(d,f,c){G(!d||d.16==3||d.16==8)I 12;J e=!D.4n(d),40=c!==12,1f=D.14.1f;f=e&&D.3X[f]||f;G(d.2j){J g=/5Q|4d|V/.11(f);G(f=="2W"&&D.14.2k)d.1d.64;G(f 1n d&&e&&!g){G(40){G(f=="O"&&D.Y(d,"4T")&&d.1d)7p"O a3 a1\'t 9V 9U";d[f]=c}G(D.Y(d,"3V")&&d.7i(f))I d.7i(f).76;I d[f]}G(1f&&e&&f=="V")I D.1K(d.V,"9T",c);G(40)d.9Q(f,""+c);J h=1f&&e&&g?d.4G(f,2):d.4G(f);I h===U?12:h}G(1f&&f=="1y"){G(40){d.6B=1;d.1E=(d.1E||"").1o(/7f\\([^)]*\\)/,"")+(3r(c)+\'\'=="9L"?"":"7f(1y="+c*7a+")")}I d.1E&&d.1E.1h("1y=")>=0?(3d(d.1E.1I(/1y=([^)]*)/)[1])/7a)+\'\':""}f=f.1o(/-([a-z])/9H,H(a,b){I b.2r()});G(40)d[f]=c;I d[f]},3k:H(a){I(a||"").1o(/^\\s+|\\s+$/g,"")},2d:H(b){J a=[];G(b!=U){J i=b.K;G(i==U||b.1R||b.4I||b.1k)a[0]=b;N 1B(i)a[--i]=b[i]}I a},2L:H(b,a){R(J i=0,K=a.K;i<K;i++)G(a[i]===b)I i;I-1},2R:H(a,b){J i=0,T,2S=a.K;G(D.14.1f){1B(T=b[i++])G(T.16!=8)a[2S++]=T}N 1B(T=b[i++])a[2S++]=T;I a},4r:H(a){J c=[],2o={};1U{R(J i=0,K=a.K;i<K;i++){J b=D.L(a[i]);G(!2o[b]){2o[b]=M;c.1p(a[i])}}}1V(e){c=a}I c},3C:H(c,a,d){J b=[];R(J i=0,K=c.K;i<K;i++)G(!d!=!a(c[i],i))b.1p(c[i]);I b},2l:H(d,a){J c=[];R(J i=0,K=d.K;i<K;i++){J b=a(d[i],i);G(b!=U)c[c.K]=b}I c.7d.1w([],c)}});J v=9B.9A.3y();D.14={5B:(v.1I(/.+(?:9y|9x|9w|9v)[\\/: ]([\\d.]+)/)||[])[1],2k:/75/.11(v),2G:/2G/.11(v),1f:/1f/.11(v)&&!/2G/.11(v),42:/42/.11(v)&&!/(9s|75)/.11(v)};J y=D.14.1f?"7o":"72";D.1l({71:!D.14.1f||S.70=="6Z",3X:{"R":"9n","9k":"1F","4i":y,72:y,7o:y,9h:"9f",9e:"9d",9b:"99"}});D.P({6W:H(a){I a.1d},97:H(a){I D.4S(a,"1d")},95:H(a){I D.3a(a,2,"2H")},91:H(a){I D.3a(a,2,"4l")},8Z:H(a){I D.4S(a,"2H")},8X:H(a){I D.4S(a,"4l")},8W:H(a){I D.5v(a.1d.1x,a)},8V:H(a){I D.5v(a.1x)},6Q:H(a){I D.Y(a,"8U")?a.8T||a.8S.S:D.2d(a.3t)}},H(c,d){D.17[c]=H(b){J a=D.2l(7,d);G(b&&1j b=="23")a=D.3g(b,a);I 7.2I(D.4r(a))}});D.P({6P:"3v",8Q:"6F",39:"6E",8P:"5q",8O:"7b"},H(c,b){D.17[c]=H(){J a=19;I 7.P(H(){R(J i=0,K=a.K;i<K;i++)D(a[i])[b](7)})}});D.P({8N:H(a){D.1K(7,a,"");G(7.16==1)7.5l(a)},8M:H(a){D.1F.1e(7,a)},8L:H(a){D.1F.21(7,a)},8K:H(a){D.1F[D.1F.3T(7,a)?"21":"1e"](7,a)},21:H(a){G(!a||D.1E(a,[7]).r.K){D("*",7).1e(7).P(H(){D.W.21(7);D.3b(7)});G(7.1d)7.1d.37(7)}},4E:H(){D(">*",7).21();1B(7.1x)7.37(7.1x)}},H(a,b){D.17[a]=H(){I 7.P(b,19)}});D.P(["6N","4b"],H(i,c){J b=c.3y();D.17[b]=H(a){I 7[0]==1b?D.14.2G&&S.1c["5t"+c]||D.14.2k&&1b["5s"+c]||S.70=="6Z"&&S.1C["5t"+c]||S.1c["5t"+c]:7[0]==S?29.2f(29.2f(S.1c["4y"+c],S.1C["4y"+c]),29.2f(S.1c["2i"+c],S.1C["2i"+c])):a==12?(7.K?D.1g(7[0],b):U):7.1g(b,a.1q==56?a:a+"2X")}});H 25(a,b){I a[0]&&3r(D.2a(a[0],b,M),10)||0}J C=D.14.2k&&3r(D.14.5B)<8H?"(?:[\\\\w*3m-]|\\\\\\\\.)":"(?:[\\\\w\\8F-\\8E*3m-]|\\\\\\\\.)",6L=2B 4v("^>\\\\s*("+C+"+)"),6J=2B 4v("^("+C+"+)(#)("+C+"+)"),6I=2B 4v("^([#.]?)("+C+"*)");D.1l({6H:{"":H(a,i,m){I m[2]=="*"||D.Y(a,m[2])},"#":H(a,i,m){I a.4G("2v")==m[2]},":":{8D:H(a,i,m){I i<m[3]-0},8C:H(a,i,m){I i>m[3]-0},3a:H(a,i,m){I m[3]-0==i},79:H(a,i,m){I m[3]-0==i},3o:H(a,i){I i==0},3S:H(a,i,m,r){I i==r.K-1},6D:H(a,i){I i%2==0},6C:H(a,i){I i%2},"3o-4u":H(a){I a.1d.3H("*")[0]==a},"3S-4u":H(a){I D.3a(a.1d.5T,1,"4l")==a},"8z-4u":H(a){I!D.3a(a.1d.5T,2,"4l")},6W:H(a){I a.1x},4E:H(a){I!a.1x},8y:H(a,i,m){I(a.6O||a.8x||D(a).1r()||"").1h(m[3])>=0},4j:H(a){I"1G"!=a.O&&D.1g(a,"18")!="2F"&&D.1g(a,"5g")!="1G"},1G:H(a){I"1G"==a.O||D.1g(a,"18")=="2F"||D.1g(a,"5g")=="1G"},8w:H(a){I!a.3R},3R:H(a){I a.3R},4J:H(a){I a.4J},2W:H(a){I a.2W||D.1K(a,"2W")},1r:H(a){I"1r"==a.O},5O:H(a){I"5O"==a.O},5L:H(a){I"5L"==a.O},5p:H(a){I"5p"==a.O},3Q:H(a){I"3Q"==a.O},5o:H(a){I"5o"==a.O},6A:H(a){I"6A"==a.O},6z:H(a){I"6z"==a.O},2s:H(a){I"2s"==a.O||D.Y(a,"2s")},4T:H(a){I/4T|2A|6y|2s/i.11(a.Y)},3T:H(a,i,m){I D.2q(m[3],a).K},8t:H(a){I/h\\d/i.11(a.Y)},8s:H(a){I D.3C(D.3O,H(b){I a==b.T}).K}}},6x:[/^(\\[) *@?([\\w-]+) *([!*$^~=]*) *(\'?"?)(.*?)\\4 *\\]/,/^(:)([\\w-]+)\\("?\'?(.*?(\\(.*?\\))?[^(]*?)"?\'?\\)/,2B 4v("^([:.#]*)("+C+"+)")],3g:H(a,c,b){J d,1t=[];1B(a&&a!=d){d=a;J f=D.1E(a,c,b);a=f.t.1o(/^\\s*,\\s*/,"");1t=b?c=f.r:D.2R(1t,f.r)}I 1t},2q:H(t,o){G(1j t!="23")I[t];G(o&&o.16!=1&&o.16!=9)I[];o=o||S;J d=[o],2o=[],3S,Y;1B(t&&3S!=t){J r=[];3S=t;t=D.3k(t);J l=Q,3j=6L,m=3j.2D(t);G(m){Y=m[1].2r();R(J i=0;d[i];i++)R(J c=d[i].1x;c;c=c.2H)G(c.16==1&&(Y=="*"||c.Y.2r()==Y))r.1p(c);d=r;t=t.1o(3j,"");G(t.1h(" ")==0)6M;l=M}N{3j=/^([>+~])\\s*(\\w*)/i;G((m=3j.2D(t))!=U){r=[];J k={};Y=m[2].2r();m=m[1];R(J j=0,3i=d.K;j<3i;j++){J n=m=="~"||m=="+"?d[j].2H:d[j].1x;R(;n;n=n.2H)G(n.16==1){J g=D.L(n);G(m=="~"&&k[g])1X;G(!Y||n.Y.2r()==Y){G(m=="~")k[g]=M;r.1p(n)}G(m=="+")1X}}d=r;t=D.3k(t.1o(3j,""));l=M}}G(t&&!l){G(!t.1h(",")){G(o==d[0])d.4s();2o=D.2R(2o,d);r=d=[o];t=" "+t.6v(1,t.K)}N{J h=6J;J m=h.2D(t);G(m){m=[0,m[2],m[3],m[1]]}N{h=6I;m=h.2D(t)}m[2]=m[2].1o(/\\\\/g,"");J f=d[d.K-1];G(m[1]=="#"&&f&&f.61&&!D.4n(f)){J p=f.61(m[2]);G((D.14.1f||D.14.2G)&&p&&1j p.2v=="23"&&p.2v!=m[2])p=D(\'[@2v="\'+m[2]+\'"]\',f)[0];d=r=p&&(!m[3]||D.Y(p,m[3]))?[p]:[]}N{R(J i=0;d[i];i++){J a=m[1]=="#"&&m[3]?m[3]:m[1]!=""||m[0]==""?"*":m[2];G(a=="*"&&d[i].Y.3y()=="49")a="3n";r=D.2R(r,d[i].3H(a))}G(m[1]==".")r=D.5m(r,m[2]);G(m[1]=="#"){J e=[];R(J i=0;r[i];i++)G(r[i].4G("2v")==m[2]){e=[r[i]];1X}r=e}d=r}t=t.1o(h,"")}}G(t){J b=D.1E(t,r);d=r=b.r;t=D.3k(b.t)}}G(t)d=[];G(d&&o==d[0])d.4s();2o=D.2R(2o,d);I 2o},5m:H(r,m,a){m=" "+m+" ";J c=[];R(J i=0;r[i];i++){J b=(" "+r[i].1F+" ").1h(m)>=0;G(!a&&b||a&&!b)c.1p(r[i])}I c},1E:H(t,r,h){J d;1B(t&&t!=d){d=t;J p=D.6x,m;R(J i=0;p[i];i++){m=p[i].2D(t);G(m){t=t.8r(m[0].K);m[2]=m[2].1o(/\\\\/g,"");1X}}G(!m)1X;G(m[1]==":"&&m[2]=="4Y")r=62.11(m[3])?D.1E(m[3],r,M).r:D(r).4Y(m[3]);N G(m[1]==".")r=D.5m(r,m[2],h);N G(m[1]=="["){J g=[],O=m[3];R(J i=0,3i=r.K;i<3i;i++){J a=r[i],z=a[D.3X[m[2]]||m[2]];G(z==U||/5Q|4d|2W/.11(m[2]))z=D.1K(a,m[2])||\'\';G((O==""&&!!z||O=="="&&z==m[5]||O=="!="&&z!=m[5]||O=="^="&&z&&!z.1h(m[5])||O=="$="&&z.6v(z.K-m[5].K)==m[5]||(O=="*="||O=="~=")&&z.1h(m[5])>=0)^h)g.1p(a)}r=g}N G(m[1]==":"&&m[2]=="3a-4u"){J e={},g=[],11=/(-?)(\\d*)n((?:\\+|-)?\\d*)/.2D(m[3]=="6D"&&"2n"||m[3]=="6C"&&"2n+1"||!/\\D/.11(m[3])&&"8q+"+m[3]||m[3]),3o=(11[1]+(11[2]||1))-0,d=11[3]-0;R(J i=0,3i=r.K;i<3i;i++){J j=r[i],1d=j.1d,2v=D.L(1d);G(!e[2v]){J c=1;R(J n=1d.1x;n;n=n.2H)G(n.16==1)n.4q=c++;e[2v]=M}J b=Q;G(3o==0){G(j.4q==d)b=M}N G((j.4q-d)%3o==0&&(j.4q-d)/3o>=0)b=M;G(b^h)g.1p(j)}r=g}N{J f=D.6H[m[1]];G(1j f=="49")f=f[m[2]];G(1j f=="23")f=6u("Q||H(a,i){I "+f+";}");r=D.3C(r,H(a,i){I f(a,i,m,r)},h)}}I{r:r,t:t}},4S:H(b,c){J a=[],1t=b[c];1B(1t&&1t!=S){G(1t.16==1)a.1p(1t);1t=1t[c]}I a},3a:H(a,e,c,b){e=e||1;J d=0;R(;a;a=a[c])G(a.16==1&&++d==e)1X;I a},5v:H(n,a){J r=[];R(;n;n=n.2H){G(n.16==1&&n!=a)r.1p(n)}I r}});D.W={1e:H(f,i,g,e){G(f.16==3||f.16==8)I;G(D.14.1f&&f.4I)f=1b;G(!g.24)g.24=7.24++;G(e!=12){J h=g;g=7.3M(h,H(){I h.1w(7,19)});g.L=e}J j=D.L(f,"3w")||D.L(f,"3w",{}),1H=D.L(f,"1H")||D.L(f,"1H",H(){G(1j D!="12"&&!D.W.5k)I D.W.1H.1w(19.3L.T,19)});1H.T=f;D.P(i.1R(/\\s+/),H(c,b){J a=b.1R(".");b=a[0];g.O=a[1];J d=j[b];G(!d){d=j[b]={};G(!D.W.2t[b]||D.W.2t[b].4p.1k(f)===Q){G(f.3K)f.3K(b,1H,Q);N G(f.6t)f.6t("4o"+b,1H)}}d[g.24]=g;D.W.26[b]=M});f=U},24:1,26:{},21:H(e,h,f){G(e.16==3||e.16==8)I;J i=D.L(e,"3w"),1L,5i;G(i){G(h==12||(1j h=="23"&&h.8p(0)=="."))R(J g 1n i)7.21(e,g+(h||""));N{G(h.O){f=h.2y;h=h.O}D.P(h.1R(/\\s+/),H(b,a){J c=a.1R(".");a=c[0];G(i[a]){G(f)2U i[a][f.24];N R(f 1n i[a])G(!c[1]||i[a][f].O==c[1])2U i[a][f];R(1L 1n i[a])1X;G(!1L){G(!D.W.2t[a]||D.W.2t[a].4A.1k(e)===Q){G(e.6p)e.6p(a,D.L(e,"1H"),Q);N G(e.6n)e.6n("4o"+a,D.L(e,"1H"))}1L=U;2U i[a]}}})}R(1L 1n i)1X;G(!1L){J d=D.L(e,"1H");G(d)d.T=U;D.3b(e,"3w");D.3b(e,"1H")}}},1P:H(h,c,f,g,i){c=D.2d(c);G(h.1h("!")>=0){h=h.3s(0,-1);J a=M}G(!f){G(7.26[h])D("*").1e([1b,S]).1P(h,c)}N{G(f.16==3||f.16==8)I 12;J b,1L,17=D.1D(f[h]||U),W=!c[0]||!c[0].32;G(W){c.6h({O:h,2J:f,32:H(){},3J:H(){},4C:1z()});c[0][E]=M}c[0].O=h;G(a)c[0].6m=M;J d=D.L(f,"1H");G(d)b=d.1w(f,c);G((!17||(D.Y(f,\'a\')&&h=="4V"))&&f["4o"+h]&&f["4o"+h].1w(f,c)===Q)b=Q;G(W)c.4s();G(i&&D.1D(i)){1L=i.1w(f,b==U?c:c.7d(b));G(1L!==12)b=1L}G(17&&g!==Q&&b!==Q&&!(D.Y(f,\'a\')&&h=="4V")){7.5k=M;1U{f[h]()}1V(e){}}7.5k=Q}I b},1H:H(b){J a,1L,38,5f,4m;b=19[0]=D.W.6l(b||1b.W);38=b.O.1R(".");b.O=38[0];38=38[1];5f=!38&&!b.6m;4m=(D.L(7,"3w")||{})[b.O];R(J j 1n 4m){J c=4m[j];G(5f||c.O==38){b.2y=c;b.L=c.L;1L=c.1w(7,19);G(a!==Q)a=1L;G(1L===Q){b.32();b.3J()}}}I a},6l:H(b){G(b[E]==M)I b;J d=b;b={8o:d};J c="8n 8m 8l 8k 2s 8j 47 5d 6j 5E 8i L 8h 8g 4K 2y 5a 59 8e 8b 58 6f 8a 88 4k 87 86 84 6d 2J 4C 6c O 82 81 35".1R(" ");R(J i=c.K;i;i--)b[c[i]]=d[c[i]];b[E]=M;b.32=H(){G(d.32)d.32();d.80=Q};b.3J=H(){G(d.3J)d.3J();d.7Z=M};b.4C=b.4C||1z();G(!b.2J)b.2J=b.6d||S;G(b.2J.16==3)b.2J=b.2J.1d;G(!b.4k&&b.4K)b.4k=b.4K==b.2J?b.6c:b.4K;G(b.58==U&&b.5d!=U){J a=S.1C,1c=S.1c;b.58=b.5d+(a&&a.2e||1c&&1c.2e||0)-(a.6b||0);b.6f=b.6j+(a&&a.2c||1c&&1c.2c||0)-(a.6a||0)}G(!b.35&&((b.47||b.47===0)?b.47:b.5a))b.35=b.47||b.5a;G(!b.59&&b.5E)b.59=b.5E;G(!b.35&&b.2s)b.35=(b.2s&1?1:(b.2s&2?3:(b.2s&4?2:0)));I b},3M:H(a,b){b.24=a.24=a.24||b.24||7.24++;I b},2t:{27:{4p:H(){55();I},4A:H(){I}},3D:{4p:H(){G(D.14.1f)I Q;D(7).2O("53",D.W.2t.3D.2y);I M},4A:H(){G(D.14.1f)I Q;D(7).4e("53",D.W.2t.3D.2y);I M},2y:H(a){G(F(a,7))I M;a.O="3D";I D.W.1H.1w(7,19)}},3N:{4p:H(){G(D.14.1f)I Q;D(7).2O("51",D.W.2t.3N.2y);I M},4A:H(){G(D.14.1f)I Q;D(7).4e("51",D.W.2t.3N.2y);I M},2y:H(a){G(F(a,7))I M;a.O="3N";I D.W.1H.1w(7,19)}}}};D.17.1l({2O:H(c,a,b){I c=="4X"?7.2V(c,a,b):7.P(H(){D.W.1e(7,c,b||a,b&&a)})},2V:H(d,b,c){J e=D.W.3M(c||b,H(a){D(7).4e(a,e);I(c||b).1w(7,19)});I 7.P(H(){D.W.1e(7,d,e,c&&b)})},4e:H(a,b){I 7.P(H(){D.W.21(7,a,b)})},1P:H(c,a,b){I 7.P(H(){D.W.1P(c,a,7,M,b)})},5C:H(c,a,b){I 7[0]&&D.W.1P(c,a,7[0],Q,b)},2m:H(b){J c=19,i=1;1B(i<c.K)D.W.3M(b,c[i++]);I 7.4V(D.W.3M(b,H(a){7.4Z=(7.4Z||0)%i;a.32();I c[7.4Z++].1w(7,19)||Q}))},7X:H(a,b){I 7.2O(\'3D\',a).2O(\'3N\',b)},27:H(a){55();G(D.2Q)a.1k(S,D);N D.3A.1p(H(){I a.1k(7,D)});I 7}});D.1l({2Q:Q,3A:[],27:H(){G(!D.2Q){D.2Q=M;G(D.3A){D.P(D.3A,H(){7.1k(S)});D.3A=U}D(S).5C("27")}}});J x=Q;H 55(){G(x)I;x=M;G(S.3K&&!D.14.2G)S.3K("69",D.27,Q);G(D.14.1f&&1b==1S)(H(){G(D.2Q)I;1U{S.1C.7V("1A")}1V(3e){3B(19.3L,0);I}D.27()})();G(D.14.2G)S.3K("69",H(){G(D.2Q)I;R(J i=0;i<S.4W.K;i++)G(S.4W[i].3R){3B(19.3L,0);I}D.27()},Q);G(D.14.2k){J a;(H(){G(D.2Q)I;G(S.3f!="68"&&S.3f!="1J"){3B(19.3L,0);I}G(a===12)a=D("V, 7A[7U=7S]").K;G(S.4W.K!=a){3B(19.3L,0);I}D.27()})()}D.W.1e(1b,"43",D.27)}D.P(("7R,7Q,43,85,4y,4X,4V,7P,"+"7O,7N,89,53,51,7M,2A,"+"5o,7L,7K,8d,3e").1R(","),H(i,b){D.17[b]=H(a){I a?7.2O(b,a):7.1P(b)}});J F=H(a,c){J b=a.4k;1B(b&&b!=c)1U{b=b.1d}1V(3e){b=c}I b==c};D(1b).2O("4X",H(){D("*").1e(S).4e()});D.17.1l({67:D.17.43,43:H(g,d,c){G(1j g!=\'23\')I 7.67(g);J e=g.1h(" ");G(e>=0){J i=g.3s(e,g.K);g=g.3s(0,e)}c=c||H(){};J f="2P";G(d)G(D.1D(d)){c=d;d=U}N{d=D.3n(d);f="6g"}J h=7;D.3Y({1a:g,O:f,1O:"2K",L:d,1J:H(a,b){G(b=="1W"||b=="7J")h.2K(i?D("<1v/>").3v(a.4U.1o(/<1m(.|\\s)*?\\/1m>/g,"")).2q(i):a.4U);h.P(c,[a.4U,b,a])}});I 7},aL:H(){I D.3n(7.7I())},7I:H(){I 7.2l(H(){I D.Y(7,"3V")?D.2d(7.aH):7}).1E(H(){I 7.34&&!7.3R&&(7.4J||/2A|6y/i.11(7.Y)||/1r|1G|3Q/i.11(7.O))}).2l(H(i,c){J b=D(7).6e();I b==U?U:b.1q==2p?D.2l(b,H(a,i){I{34:c.34,2x:a}}):{34:c.34,2x:b}}).3p()}});D.P("7H,7G,7F,7D,7C,7B".1R(","),H(i,o){D.17[o]=H(f){I 7.2O(o,f)}});J B=1z();D.1l({3p:H(d,b,a,c){G(D.1D(b)){a=b;b=U}I D.3Y({O:"2P",1a:d,L:b,1W:a,1O:c})},aE:H(b,a){I D.3p(b,U,a,"1m")},aD:H(c,b,a){I D.3p(c,b,a,"3z")},aC:H(d,b,a,c){G(D.1D(b)){a=b;b={}}I D.3Y({O:"6g",1a:d,L:b,1W:a,1O:c})},aA:H(a){D.1l(D.60,a)},60:{1a:5Z.5Q,26:M,O:"2P",2T:0,7z:"4R/x-ax-3V-aw",7x:M,31:M,L:U,5Y:U,3Q:U,4Q:{2N:"4R/2N, 1r/2N",2K:"1r/2K",1m:"1r/4t, 4R/4t",3z:"4R/3z, 1r/4t",1r:"1r/as",4w:"*/*"}},4z:{},3Y:H(s){s=D.1l(M,s,D.1l(M,{},D.60,s));J g,2Z=/=\\?(&|$)/g,1u,L,O=s.O.2r();G(s.L&&s.7x&&1j s.L!="23")s.L=D.3n(s.L);G(s.1O=="4P"){G(O=="2P"){G(!s.1a.1I(2Z))s.1a+=(s.1a.1I(/\\?/)?"&":"?")+(s.4P||"7u")+"=?"}N G(!s.L||!s.L.1I(2Z))s.L=(s.L?s.L+"&":"")+(s.4P||"7u")+"=?";s.1O="3z"}G(s.1O=="3z"&&(s.L&&s.L.1I(2Z)||s.1a.1I(2Z))){g="4P"+B++;G(s.L)s.L=(s.L+"").1o(2Z,"="+g+"$1");s.1a=s.1a.1o(2Z,"="+g+"$1");s.1O="1m";1b[g]=H(a){L=a;1W();1J();1b[g]=12;1U{2U 1b[g]}1V(e){}G(i)i.37(h)}}G(s.1O=="1m"&&s.1Y==U)s.1Y=Q;G(s.1Y===Q&&O=="2P"){J j=1z();J k=s.1a.1o(/(\\?|&)3m=.*?(&|$)/,"$ap="+j+"$2");s.1a=k+((k==s.1a)?(s.1a.1I(/\\?/)?"&":"?")+"3m="+j:"")}G(s.L&&O=="2P"){s.1a+=(s.1a.1I(/\\?/)?"&":"?")+s.L;s.L=U}G(s.26&&!D.4O++)D.W.1P("7H");J n=/^(?:\\w+:)?\\/\\/([^\\/?#]+)/;G(s.1O=="1m"&&O=="2P"&&n.11(s.1a)&&n.2D(s.1a)[1]!=5Z.al){J i=S.3H("6w")[0];J h=S.3h("1m");h.4d=s.1a;G(s.7t)h.aj=s.7t;G(!g){J l=Q;h.ah=h.ag=H(){G(!l&&(!7.3f||7.3f=="68"||7.3f=="1J")){l=M;1W();1J();i.37(h)}}}i.3U(h);I 12}J m=Q;J c=1b.7s?2B 7s("ae.ac"):2B 7r();G(s.5Y)c.6R(O,s.1a,s.31,s.5Y,s.3Q);N c.6R(O,s.1a,s.31);1U{G(s.L)c.4B("ab-aa",s.7z);G(s.5S)c.4B("a9-5R-a8",D.4z[s.1a]||"a7, a6 a5 a4 5N:5N:5N a2");c.4B("X-9Z-9Y","7r");c.4B("9W",s.1O&&s.4Q[s.1O]?s.4Q[s.1O]+", */*":s.4Q.4w)}1V(e){}G(s.7m&&s.7m(c,s)===Q){s.26&&D.4O--;c.7l();I Q}G(s.26)D.W.1P("7B",[c,s]);J d=H(a){G(!m&&c&&(c.3f==4||a=="2T")){m=M;G(f){7k(f);f=U}1u=a=="2T"&&"2T"||!D.7j(c)&&"3e"||s.5S&&D.7h(c,s.1a)&&"7J"||"1W";G(1u=="1W"){1U{L=D.6X(c,s.1O,s.9S)}1V(e){1u="5J"}}G(1u=="1W"){J b;1U{b=c.5I("7g-5R")}1V(e){}G(s.5S&&b)D.4z[s.1a]=b;G(!g)1W()}N D.5H(s,c,1u);1J();G(s.31)c=U}};G(s.31){J f=4I(d,13);G(s.2T>0)3B(H(){G(c){c.7l();G(!m)d("2T")}},s.2T)}1U{c.9P(s.L)}1V(e){D.5H(s,c,U,e)}G(!s.31)d();H 1W(){G(s.1W)s.1W(L,1u);G(s.26)D.W.1P("7C",[c,s])}H 1J(){G(s.1J)s.1J(c,1u);G(s.26)D.W.1P("7F",[c,s]);G(s.26&&!--D.4O)D.W.1P("7G")}I c},5H:H(s,a,b,e){G(s.3e)s.3e(a,b,e);G(s.26)D.W.1P("7D",[a,s,e])},4O:0,7j:H(a){1U{I!a.1u&&5Z.9O=="5p:"||(a.1u>=7e&&a.1u<9N)||a.1u==7c||a.1u==9K||D.14.2k&&a.1u==12}1V(e){}I Q},7h:H(a,c){1U{J b=a.5I("7g-5R");I a.1u==7c||b==D.4z[c]||D.14.2k&&a.1u==12}1V(e){}I Q},6X:H(a,c,b){J d=a.5I("9J-O"),2N=c=="2N"||!c&&d&&d.1h("2N")>=0,L=2N?a.9I:a.4U;G(2N&&L.1C.2j=="5J")7p"5J";G(b)L=b(L,c);G(c=="1m")D.5u(L);G(c=="3z")L=6u("("+L+")");I L},3n:H(a){J s=[];G(a.1q==2p||a.5w)D.P(a,H(){s.1p(3u(7.34)+"="+3u(7.2x))});N R(J j 1n a)G(a[j]&&a[j].1q==2p)D.P(a[j],H(){s.1p(3u(j)+"="+3u(7))});N s.1p(3u(j)+"="+3u(D.1D(a[j])?a[j]():a[j]));I s.6s("&").1o(/%20/g,"+")}});D.17.1l({1N:H(c,b){I c?7.2g({1Z:"1N",2h:"1N",1y:"1N"},c,b):7.1E(":1G").P(H(){7.V.18=7.5D||"";G(D.1g(7,"18")=="2F"){J a=D("<"+7.2j+" />").6P("1c");7.V.18=a.1g("18");G(7.V.18=="2F")7.V.18="3I";a.21()}}).3l()},1M:H(b,a){I b?7.2g({1Z:"1M",2h:"1M",1y:"1M"},b,a):7.1E(":4j").P(H(){7.5D=7.5D||D.1g(7,"18");7.V.18="2F"}).3l()},78:D.17.2m,2m:H(a,b){I D.1D(a)&&D.1D(b)?7.78.1w(7,19):a?7.2g({1Z:"2m",2h:"2m",1y:"2m"},a,b):7.P(H(){D(7)[D(7).3F(":1G")?"1N":"1M"]()})},9G:H(b,a){I 7.2g({1Z:"1N"},b,a)},9F:H(b,a){I 7.2g({1Z:"1M"},b,a)},9E:H(b,a){I 7.2g({1Z:"2m"},b,a)},9D:H(b,a){I 7.2g({1y:"1N"},b,a)},9M:H(b,a){I 7.2g({1y:"1M"},b,a)},9C:H(c,a,b){I 7.2g({1y:a},c,b)},2g:H(k,j,i,g){J h=D.77(j,i,g);I 7[h.36===Q?"P":"36"](H(){G(7.16!=1)I Q;J f=D.1l({},h),p,1G=D(7).3F(":1G"),46=7;R(p 1n k){G(k[p]=="1M"&&1G||k[p]=="1N"&&!1G)I f.1J.1k(7);G(p=="1Z"||p=="2h"){f.18=D.1g(7,"18");f.33=7.V.33}}G(f.33!=U)7.V.33="1G";f.45=D.1l({},k);D.P(k,H(c,a){J e=2B D.28(46,f,c);G(/2m|1N|1M/.11(a))e[a=="2m"?1G?"1N":"1M":a](k);N{J b=a.6r().1I(/^([+-]=)?([\\d+-.]+)(.*)$/),2b=e.1t(M)||0;G(b){J d=3d(b[2]),2M=b[3]||"2X";G(2M!="2X"){46.V[c]=(d||1)+2M;2b=((d||1)/e.1t(M))*2b;46.V[c]=2b+2M}G(b[1])d=((b[1]=="-="?-1:1)*d)+2b;e.3G(2b,d,2M)}N e.3G(2b,a,"")}});I M})},36:H(a,b){G(D.1D(a)||(a&&a.1q==2p)){b=a;a="28"}G(!a||(1j a=="23"&&!b))I A(7[0],a);I 7.P(H(){G(b.1q==2p)A(7,a,b);N{A(7,a).1p(b);G(A(7,a).K==1)b.1k(7)}})},9X:H(b,c){J a=D.3O;G(b)7.36([]);7.P(H(){R(J i=a.K-1;i>=0;i--)G(a[i].T==7){G(c)a[i](M);a.7n(i,1)}});G(!c)7.5A();I 7}});J A=H(b,c,a){G(b){c=c||"28";J q=D.L(b,c+"36");G(!q||a)q=D.L(b,c+"36",D.2d(a))}I q};D.17.5A=H(a){a=a||"28";I 7.P(H(){J q=A(7,a);q.4s();G(q.K)q[0].1k(7)})};D.1l({77:H(b,a,c){J d=b&&b.1q==a0?b:{1J:c||!c&&a||D.1D(b)&&b,2u:b,41:c&&a||a&&a.1q!=9t&&a};d.2u=(d.2u&&d.2u.1q==4L?d.2u:D.28.5K[d.2u])||D.28.5K.74;d.5M=d.1J;d.1J=H(){G(d.36!==Q)D(7).5A();G(D.1D(d.5M))d.5M.1k(7)};I d},41:{73:H(p,n,b,a){I b+a*p},5P:H(p,n,b,a){I((-29.9r(p*29.9q)/2)+0.5)*a+b}},3O:[],48:U,28:H(b,c,a){7.15=c;7.T=b;7.1i=a;G(!c.3Z)c.3Z={}}});D.28.44={4D:H(){G(7.15.2Y)7.15.2Y.1k(7.T,7.1z,7);(D.28.2Y[7.1i]||D.28.2Y.4w)(7);G(7.1i=="1Z"||7.1i=="2h")7.T.V.18="3I"},1t:H(a){G(7.T[7.1i]!=U&&7.T.V[7.1i]==U)I 7.T[7.1i];J r=3d(D.1g(7.T,7.1i,a));I r&&r>-9p?r:3d(D.2a(7.T,7.1i))||0},3G:H(c,b,d){7.5V=1z();7.2b=c;7.3l=b;7.2M=d||7.2M||"2X";7.1z=7.2b;7.2S=7.4N=0;7.4D();J e=7;H t(a){I e.2Y(a)}t.T=7.T;D.3O.1p(t);G(D.48==U){D.48=4I(H(){J a=D.3O;R(J i=0;i<a.K;i++)G(!a[i]())a.7n(i--,1);G(!a.K){7k(D.48);D.48=U}},13)}},1N:H(){7.15.3Z[7.1i]=D.1K(7.T.V,7.1i);7.15.1N=M;7.3G(0,7.1t());G(7.1i=="2h"||7.1i=="1Z")7.T.V[7.1i]="9m";D(7.T).1N()},1M:H(){7.15.3Z[7.1i]=D.1K(7.T.V,7.1i);7.15.1M=M;7.3G(7.1t(),0)},2Y:H(a){J t=1z();G(a||t>7.15.2u+7.5V){7.1z=7.3l;7.2S=7.4N=1;7.4D();7.15.45[7.1i]=M;J b=M;R(J i 1n 7.15.45)G(7.15.45[i]!==M)b=Q;G(b){G(7.15.18!=U){7.T.V.33=7.15.33;7.T.V.18=7.15.18;G(D.1g(7.T,"18")=="2F")7.T.V.18="3I"}G(7.15.1M)7.T.V.18="2F";G(7.15.1M||7.15.1N)R(J p 1n 7.15.45)D.1K(7.T.V,p,7.15.3Z[p])}G(b)7.15.1J.1k(7.T);I Q}N{J n=t-7.5V;7.4N=n/7.15.2u;7.2S=D.41[7.15.41||(D.41.5P?"5P":"73")](7.4N,n,0,1,7.15.2u);7.1z=7.2b+((7.3l-7.2b)*7.2S);7.4D()}I M}};D.1l(D.28,{5K:{9l:9j,9i:7e,74:9g},2Y:{2e:H(a){a.T.2e=a.1z},2c:H(a){a.T.2c=a.1z},1y:H(a){D.1K(a.T.V,"1y",a.1z)},4w:H(a){a.T.V[a.1i]=a.1z+a.2M}}});D.17.2i=H(){J b=0,1S=0,T=7[0],3q;G(T)ao(D.14){J d=T.1d,4a=T,1s=T.1s,1Q=T.2z,5U=2k&&3r(5B)<9c&&!/9a/i.11(v),1g=D.2a,3c=1g(T,"30")=="3c";G(T.7y){J c=T.7y();1e(c.1A+29.2f(1Q.1C.2e,1Q.1c.2e),c.1S+29.2f(1Q.1C.2c,1Q.1c.2c));1e(-1Q.1C.6b,-1Q.1C.6a)}N{1e(T.5X,T.5W);1B(1s){1e(1s.5X,1s.5W);G(42&&!/^t(98|d|h)$/i.11(1s.2j)||2k&&!5U)2C(1s);G(!3c&&1g(1s,"30")=="3c")3c=M;4a=/^1c$/i.11(1s.2j)?4a:1s;1s=1s.1s}1B(d&&d.2j&&!/^1c|2K$/i.11(d.2j)){G(!/^96|1T.*$/i.11(1g(d,"18")))1e(-d.2e,-d.2c);G(42&&1g(d,"33")!="4j")2C(d);d=d.1d}G((5U&&(3c||1g(4a,"30")=="5x"))||(42&&1g(4a,"30")!="5x"))1e(-1Q.1c.5X,-1Q.1c.5W);G(3c)1e(29.2f(1Q.1C.2e,1Q.1c.2e),29.2f(1Q.1C.2c,1Q.1c.2c))}3q={1S:1S,1A:b}}H 2C(a){1e(D.2a(a,"6V",M),D.2a(a,"6U",M))}H 1e(l,t){b+=3r(l,10)||0;1S+=3r(t,10)||0}I 3q};D.17.1l({30:H(){J a=0,1S=0,3q;G(7[0]){J b=7.1s(),2i=7.2i(),4c=/^1c|2K$/i.11(b[0].2j)?{1S:0,1A:0}:b.2i();2i.1S-=25(7,\'94\');2i.1A-=25(7,\'aF\');4c.1S+=25(b,\'6U\');4c.1A+=25(b,\'6V\');3q={1S:2i.1S-4c.1S,1A:2i.1A-4c.1A}}I 3q},1s:H(){J a=7[0].1s;1B(a&&(!/^1c|2K$/i.11(a.2j)&&D.1g(a,\'30\')==\'93\'))a=a.1s;I D(a)}});D.P([\'5e\',\'5G\'],H(i,b){J c=\'4y\'+b;D.17[c]=H(a){G(!7[0])I;I a!=12?7.P(H(){7==1b||7==S?1b.92(!i?a:D(1b).2e(),i?a:D(1b).2c()):7[c]=a}):7[0]==1b||7[0]==S?46[i?\'aI\':\'aJ\']||D.71&&S.1C[c]||S.1c[c]:7[0][c]}});D.P(["6N","4b"],H(i,b){J c=i?"5e":"5G",4f=i?"6k":"6i";D.17["5s"+b]=H(){I 7[b.3y()]()+25(7,"57"+c)+25(7,"57"+4f)};D.17["90"+b]=H(a){I 7["5s"+b]()+25(7,"2C"+c+"4b")+25(7,"2C"+4f+"4b")+(a?25(7,"6S"+c)+25(7,"6S"+4f):0)}})})();', 62, 669, '|||||||this|||||||||||||||||||||||||||||||||||if|function|return|var|length|data|true|else|type|each|false|for|document|elem|null|style|event||nodeName|||test|undefined||browser|options|nodeType|fn|display|arguments|url|window|body|parentNode|add|msie|css|indexOf|prop|typeof|call|extend|script|in|replace|push|constructor|text|offsetParent|cur|status|div|apply|firstChild|opacity|now|left|while|documentElement|isFunction|filter|className|hidden|handle|match|complete|attr|ret|hide|show|dataType|trigger|doc|split|top|table|try|catch|success|break|cache|height||remove|tbody|string|guid|num|global|ready|fx|Math|curCSS|start|scrollTop|makeArray|scrollLeft|max|animate|width|offset|tagName|safari|map|toggle||done|Array|find|toUpperCase|button|special|duration|id|copy|value|handler|ownerDocument|select|new|border|exec|stack|none|opera|nextSibling|pushStack|target|html|inArray|unit|xml|bind|GET|isReady|merge|pos|timeout|delete|one|selected|px|step|jsre|position|async|preventDefault|overflow|name|which|queue|removeChild|namespace|insertBefore|nth|removeData|fixed|parseFloat|error|readyState|multiFilter|createElement|rl|re|trim|end|_|param|first|get|results|parseInt|slice|childNodes|encodeURIComponent|append|events|elems|toLowerCase|json|readyList|setTimeout|grep|mouseenter|color|is|custom|getElementsByTagName|block|stopPropagation|addEventListener|callee|proxy|mouseleave|timers|defaultView|password|disabled|last|has|appendChild|form|domManip|props|ajax|orig|set|easing|mozilla|load|prototype|curAnim|self|charCode|timerId|object|offsetChild|Width|parentOffset|src|unbind|br|currentStyle|clean|float|visible|relatedTarget|previousSibling|handlers|isXMLDoc|on|setup|nodeIndex|unique|shift|javascript|child|RegExp|_default|deep|scroll|lastModified|teardown|setRequestHeader|timeStamp|update|empty|tr|getAttribute|innerHTML|setInterval|checked|fromElement|Number|jQuery|state|active|jsonp|accepts|application|dir|input|responseText|click|styleSheets|unload|not|lastToggle|outline|mouseout|getPropertyValue|mouseover|getComputedStyle|bindReady|String|padding|pageX|metaKey|keyCode|getWH|andSelf|clientX|Left|all|visibility|container|index|init|triggered|removeAttribute|classFilter|prevObject|submit|file|after|windowData|inner|client|globalEval|sibling|jquery|absolute|clone|wrapAll|dequeue|version|triggerHandler|oldblock|ctrlKey|createTextNode|Top|handleError|getResponseHeader|parsererror|speeds|checkbox|old|00|radio|swing|href|Modified|ifModified|lastChild|safari2|startTime|offsetTop|offsetLeft|username|location|ajaxSettings|getElementById|isSimple|values|selectedIndex|runtimeStyle|rsLeft|_load|loaded|DOMContentLoaded|clientTop|clientLeft|toElement|srcElement|val|pageY|POST|unshift|Bottom|clientY|Right|fix|exclusive|detachEvent|cloneNode|removeEventListener|swap|toString|join|attachEvent|eval|substr|head|parse|textarea|reset|image|zoom|odd|even|before|prepend|exclude|expr|quickClass|quickID|uuid|quickChild|continue|Height|textContent|appendTo|contents|open|margin|evalScript|borderTopWidth|borderLeftWidth|parent|httpData|setArray|CSS1Compat|compatMode|boxModel|cssFloat|linear|def|webkit|nodeValue|speed|_toggle|eq|100|replaceWith|304|concat|200|alpha|Last|httpNotModified|getAttributeNode|httpSuccess|clearInterval|abort|beforeSend|splice|styleFloat|throw|colgroup|XMLHttpRequest|ActiveXObject|scriptCharset|callback|fieldset|multiple|processData|getBoundingClientRect|contentType|link|ajaxSend|ajaxSuccess|ajaxError|col|ajaxComplete|ajaxStop|ajaxStart|serializeArray|notmodified|keypress|keydown|change|mouseup|mousedown|dblclick|focus|blur|stylesheet|hasClass|rel|doScroll|black|hover|solid|cancelBubble|returnValue|wheelDelta|view|round|shiftKey|resize|screenY|screenX|relatedNode|mousemove|prevValue|originalTarget|offsetHeight|keyup|newValue|offsetWidth|eventPhase|detail|currentTarget|cancelable|bubbles|attrName|attrChange|altKey|originalEvent|charAt|0n|substring|animated|header|noConflict|line|enabled|innerText|contains|only|weight|font|gt|lt|uFFFF|u0128|size|417|Boolean|Date|toggleClass|removeClass|addClass|removeAttr|replaceAll|insertAfter|prependTo|wrap|contentWindow|contentDocument|iframe|children|siblings|prevAll|wrapInner|nextAll|outer|prev|scrollTo|static|marginTop|next|inline|parents|able|cellSpacing|adobeair|cellspacing|522|maxLength|maxlength|readOnly|400|readonly|fast|600|class|slow|1px|htmlFor|reverse|10000|PI|cos|compatible|Function|setData|ie|ra|it|rv|getData|userAgent|navigator|fadeTo|fadeIn|slideToggle|slideUp|slideDown|ig|responseXML|content|1223|NaN|fadeOut|300|protocol|send|setAttribute|option|dataFilter|cssText|changed|be|Accept|stop|With|Requested|Object|can|GMT|property|1970|Jan|01|Thu|Since|If|Type|Content|XMLHTTP|th|Microsoft|td|onreadystatechange|onload|cap|charset|colg|host|tfoot|specified|with|1_|thead|leg|plain|attributes|opt|embed|urlencoded|www|area|hr|ajaxSetup|meta|post|getJSON|getScript|marginLeft|img|elements|pageYOffset|pageXOffset|abbr|serialize|pixelLeft'.split('|'), 0, {}));
(function(C) {
    var I = C.fn.remove, D = C.browser.mozilla && (parseFloat(C.browser.version) < 1.9);
    C.ui = {
        version: "1.6",
        plugin: {
            add: function(K, L, N) {
                var M = C.ui[K].prototype;
                for (var J in N) {
                    M.plugins[J] = M.plugins[J] || [];
                    M.plugins[J].push([L, N[J]])
                }
            },
            call: function(J, L, K) {
                var N = J.plugins[L];
                if (!N) {
                    return
                }
                for (var M = 0; M < N.length; M++) {
                    if (J.options[N[M][0]]) {
                        N[M][1].apply(J.element, K)
                    }
                }
            }
        },
        contains: function(L, K) {
            var J = C.browser.safari && C.browser.version < 522;
            if (L.contains && !J) {
                return L.contains(K)
            }
            if (L.compareDocumentPosition) {
                return!!(L.compareDocumentPosition(K) & 16)
            }
            while (K = K.parentNode) {
                if (K == L) {
                    return true
                }
            }
            return false
        },
        cssCache: {},
        css: function(J) {
            if (C.ui.cssCache[J]) {
                return C.ui.cssCache[J]
            }
            var K = C('<div class="ui-gen">').addClass(J).css({
                position: "absolute",
                top: "-5000px",
                left: "-5000px",
                display: "block"
            }).appendTo("body");
            C.ui.cssCache[J] = !!((!(/auto|default/).test(K.css("cursor")) || (/^[1-9]/).test(K.css("height")) || (/^[1-9]/).test(K.css("width")) || !(/none/).test(K.css("backgroundImage")) || !(/transparent|rgba\(0, 0, 0, 0\)/).test(K.css("backgroundColor"))));
            try {
                C("body").get(0).removeChild(K.get(0))
            } catch (L) {
            }
            return C.ui.cssCache[J]
        },
        hasScroll: function(M, K) {
            if (C(M).css("overflow") == "hidden") {
                return false
            }
            var J = (K && K == "left") ? "scrollLeft" : "scrollTop", L = false;
            if (M[J] > 0) {
                return true
            }
            M[J] = 1;
            L = (M[J] > 0);
            M[J] = 0;
            return L
        },
        isOverAxis: function(K, J, L) {
            return(K > J) && (K < (J + L))
        },
        isOver: function(O, K, N, M, J, L) {
            return C.ui.isOverAxis(O, N, J) && C.ui.isOverAxis(K, M, L)
        },
        keyCode: {
            BACKSPACE: 8,
            CAPS_LOCK: 20,
            COMMA: 188,
            CONTROL: 17,
            DELETE: 46,
            DOWN: 40,
            END: 35,
            ENTER: 13,
            ESCAPE: 27,
            HOME: 36,
            INSERT: 45,
            LEFT: 37,
            NUMPAD_ADD: 107,
            NUMPAD_DECIMAL: 110,
            NUMPAD_DIVIDE: 111,
            NUMPAD_ENTER: 108,
            NUMPAD_MULTIPLY: 106,
            NUMPAD_SUBTRACT: 109,
            PAGE_DOWN: 34,
            PAGE_UP: 33,
            PERIOD: 190,
            RIGHT: 39,
            SHIFT: 16,
            SPACE: 32,
            TAB: 9,
            UP: 38
        }
    };

    if (D) {
        var F = C.attr, E = C.fn.removeAttr, H = "http://www.w3.org/2005/07/aaa", A = /^aria-/, B = /^wairole:/;
        C.attr = function(K, J, L) {
            var M = L !== undefined;
            return(J == "role" ? (M ? F.call(this, K, J, "wairole:" + L) : (F.apply(this, arguments) || "").replace(B, "")) : (A.test(J) ? (M ? K.setAttributeNS(H, J.replace(A, "aaa:"), L) : F.call(this, K, J.replace(A, "aaa:"))) : F.apply(this, arguments)))
        };

        C.fn.removeAttr = function(J) {
            return(A.test(J) ? this.each(function() {
                this.removeAttributeNS(H, J.replace(A, ""))
            }) : E.call(this, J))
        }
    }
    C.fn.extend({
        remove: function() {
            C("*", this).add(this).each(function() {
                C(this).triggerHandler("remove")
            });
            return I.apply(this, arguments)
        },
        enableSelection: function() {
            return this.attr("unselectable", "off").css("MozUserSelect", "").unbind("selectstart.ui")
        },
        disableSelection: function() {
            return this.attr("unselectable", "on").css("MozUserSelect", "none").bind("selectstart.ui", function() {
                return false
            })
        },
        scrollParent: function() {
            var J;
            if ((C.browser.msie && (/(static|relative)/).test(this.css("position"))) || (/absolute/).test(this.css("position"))) {
                J = this.parents().filter(function() {
                    return(/(relative|absolute|fixed)/).test(C.curCSS(this, "position", 1)) && (/(auto|scroll)/).test(C.curCSS(this, "overflow", 1) + C.curCSS(this, "overflow-y", 1) + C.curCSS(this, "overflow-x", 1))
                }).eq(0)
            } else {
                J = this.parents().filter(function() {
                    return(/(auto|scroll)/).test(C.curCSS(this, "overflow", 1) + C.curCSS(this, "overflow-y", 1) + C.curCSS(this, "overflow-x", 1))
                }).eq(0)
            }
            return(/fixed/).test(this.css("position")) || !J.length ? C(document) : J
        }
    });
    C.extend(C.expr[":"], {
        data: function(K, L, J) {
            return C.data(K, J[3])
        },
        tabbable: function(L, M, K) {
            var N = L.nodeName.toLowerCase();
            function J(O) {
                return!(C(O).is(":hidden") || C(O).parents(":hidden").length)
            }
            return(L.tabIndex >= 0 && (("a" == N && L.href) || (/input|select|textarea|button/.test(N) && "hidden" != L.type && !L.disabled)) && J(L))
        }
    });
    function G(M, N, O, L) {
        function K(Q) {
            var P = C[M][N][Q] || [];
            return(typeof P == "string" ? P.split(/,?\s+/) : P)
        }
        var J = K("getter");
        if (L.length == 1 && typeof L[0] == "string") {
            J = J.concat(K("getterSetter"))
        }
        return(C.inArray(O, J) != -1)
    }
    C.widget = function(K, J) {
        var L = K.split(".")[0];
        K = K.split(".")[1];
        C.fn[K] = function(P) {
            var N = (typeof P == "string"), O = Array.prototype.slice.call(arguments, 1);
            if (N && P.substring(0, 1) == "_") {
                return this
            }
            if (N && G(L, K, P, O)) {
                var M = C.data(this[0], K);
                return(M ? M[P].apply(M, O) : undefined)
            }
            return this.each(function() {
                var Q = C.data(this, K);
                (!Q && !N && C.data(this, K, new C[L][K](this, P)));
                (Q && N && C.isFunction(Q[P]) && Q[P].apply(Q, O))
            })
        };

        C[L] = C[L] || {};

        C[L][K] = function(O, N) {
            var M = this;
            this.widgetName = K;
            this.widgetEventPrefix = C[L][K].eventPrefix || K;
            this.widgetBaseClass = L + "-" + K;
            this.options = C.extend({}, C.widget.defaults, C[L][K].defaults, C.metadata && C.metadata.get(O)[K], N);
            this.element = C(O).bind("setData." + K, function(Q, P, R) {
                return M._setData(P, R)
            }).bind("getData." + K, function(Q, P) {
                return M._getData(P)
            }).bind("remove", function() {
                return M.destroy()
            });
            this._init()
        };

        C[L][K].prototype = C.extend({}, C.widget.prototype, J);
        C[L][K].getterSetter = "option"
    };

    C.widget.prototype = {
        _init: function() {
        },
        destroy: function() {
            this.element.removeData(this.widgetName)
        },
        option: function(L, M) {
            var K = L, J = this;
            if (typeof L == "string") {
                if (M === undefined) {
                    return this._getData(L)
                }
                K = {};

                K[L] = M
            }
            C.each(K, function(N, O) {
                J._setData(N, O)
            })
        },
        _getData: function(J) {
            return this.options[J]
        },
        _setData: function(J, K) {
            this.options[J] = K;
            if (J == "disabled") {
                this.element[K ? "addClass" : "removeClass"](this.widgetBaseClass + "-disabled")
            }
        },
        enable: function() {
            this._setData("disabled", false)
        },
        disable: function() {
            this._setData("disabled", true)
        },
        _trigger: function(K, L, M) {
            var J = (K == this.widgetEventPrefix ? K : this.widgetEventPrefix + K);
            L = L || C.event.fix({
                type: J,
                target: this.element[0]
            });
            return this.element.triggerHandler(J, [L, M], this.options[K])
        }
    };

    C.widget.defaults = {
        disabled: false
    };

    C.ui.mouse = {
        _mouseInit: function() {
            var J = this;
            this.element.bind("mousedown." + this.widgetName, function(K) {
                return J._mouseDown(K)
            }).bind("click." + this.widgetName, function(K) {
                if (J._preventClickEvent) {
                    J._preventClickEvent = false;
                    return false
                }
            });
            if (C.browser.msie) {
                this._mouseUnselectable = this.element.attr("unselectable");
                this.element.attr("unselectable", "on")
            }
            this.started = false
        },
        _mouseDestroy: function() {
            this.element.unbind("." + this.widgetName);
            (C.browser.msie && this.element.attr("unselectable", this._mouseUnselectable))
        },
        _mouseDown: function(L) {
            (this._mouseStarted && this._mouseUp(L));
            this._mouseDownEvent = L;
            var K = this, M = (L.which == 1), J = (typeof this.options.cancel == "string" ? C(L.target).parents().add(L.target).filter(this.options.cancel).length : false);
            if (!M || J || !this._mouseCapture(L)) {
                return true
            }
            this.mouseDelayMet = !this.options.delay;
            if (!this.mouseDelayMet) {
                this._mouseDelayTimer = setTimeout(function() {
                    K.mouseDelayMet = true
                }, this.options.delay)
            }
            if (this._mouseDistanceMet(L) && this._mouseDelayMet(L)) {
                this._mouseStarted = (this._mouseStart(L) !== false);
                if (!this._mouseStarted) {
                    L.preventDefault();
                    return true
                }
            }
            this._mouseMoveDelegate = function(N) {
                return K._mouseMove(N)
            };

            this._mouseUpDelegate = function(N) {
                return K._mouseUp(N)
            };

            C(document).bind("mousemove." + this.widgetName, this._mouseMoveDelegate).bind("mouseup." + this.widgetName, this._mouseUpDelegate);
            if (!C.browser.safari) {
                L.preventDefault()
            }
            return true
        },
        _mouseMove: function(J) {
            if (C.browser.msie && !J.button) {
                return this._mouseUp(J)
            }
            if (this._mouseStarted) {
                this._mouseDrag(J);
                return J.preventDefault()
            }
            if (this._mouseDistanceMet(J) && this._mouseDelayMet(J)) {
                this._mouseStarted = (this._mouseStart(this._mouseDownEvent, J) !== false);
                (this._mouseStarted ? this._mouseDrag(J) : this._mouseUp(J))
            }
            return!this._mouseStarted
        },
        _mouseUp: function(J) {
            C(document).unbind("mousemove." + this.widgetName, this._mouseMoveDelegate).unbind("mouseup." + this.widgetName, this._mouseUpDelegate);
            if (this._mouseStarted) {
                this._mouseStarted = false;
                this._preventClickEvent = true;
                this._mouseStop(J)
            }
            return false
        },
        _mouseDistanceMet: function(J) {
            return(Math.max(Math.abs(this._mouseDownEvent.pageX - J.pageX), Math.abs(this._mouseDownEvent.pageY - J.pageY)) >= this.options.distance)
        },
        _mouseDelayMet: function(J) {
            return this.mouseDelayMet
        },
        _mouseStart: function(J) {
        },
        _mouseDrag: function(J) {
        },
        _mouseStop: function(J) {
        },
        _mouseCapture: function(J) {
            return true
        }
    };

    C.ui.mouse.defaults = {
        cancel: null,
        distance: 1,
        delay: 0
    }
})(jQuery);
(function(A) {
    A.widget("ui.draggable", A.extend({}, A.ui.mouse, {
        _init: function() {
            if (this.options.helper == "original" && !(/^(?:r|a|f)/).test(this.element.css("position"))) {
                this.element[0].style.position = "relative"
            }
            (this.options.cssNamespace && this.element.addClass(this.options.cssNamespace + "-draggable"));
            (this.options.disabled && this.element.addClass("ui-draggable-disabled"));
            this._mouseInit()
        },
        destroy: function() {
            if (!this.element.data("draggable")) {
                return
            }
            this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");
            this._mouseDestroy()
        },
        _mouseCapture: function(B) {
            var C = this.options;
            if (this.helper || C.disabled || A(B.target).is(".ui-resizable-handle")) {
                return false
            }
            this.handle = this._getHandle(B);
            if (!this.handle) {
                return false
            }
            return true
        },
        _mouseStart: function(B) {
            var C = this.options;
            this.helper = this._createHelper(B);
            this._cacheHelperProportions();
            if (A.ui.ddmanager) {
                A.ui.ddmanager.current = this
            }
            this._cacheMargins();
            this.cssPosition = this.helper.css("position");
            this.scrollParent = this.helper.scrollParent();
            this.offset = this.element.offset();
            this.offset = {
                top: this.offset.top - this.margins.top,
                left: this.offset.left - this.margins.left
            };

            A.extend(this.offset, {
                click: {
                    left: B.pageX - this.offset.left,
                    top: B.pageY - this.offset.top
                },
                parent: this._getParentOffset(),
                relative: this._getRelativeOffset()
            });
            if (C.cursorAt) {
                this._adjustOffsetFromHelper(C.cursorAt)
            }
            this.originalPosition = this._generatePosition(B);
            if (C.containment) {
                this._setContainment()
            }
            this._propagate("start", B);
            this._cacheHelperProportions();
            if (A.ui.ddmanager && !C.dropBehaviour) {
                A.ui.ddmanager.prepareOffsets(this, B)
            }
            this.helper.addClass("ui-draggable-dragging");
            this._mouseDrag(B, true);
            return true
        },
        _mouseDrag: function(B, C) {
            this.position = this._generatePosition(B);
            this.positionAbs = this._convertPositionTo("absolute");
            if (!C) {
                this.position = this._propagate("drag", B) || this.position
            }
            if (!this.options.axis || this.options.axis != "y") {
                this.helper[0].style.left = this.position.left + "px"
            }
            if (!this.options.axis || this.options.axis != "x") {
                this.helper[0].style.top = this.position.top + "px"
            }
            if (A.ui.ddmanager) {
                A.ui.ddmanager.drag(this, B)
            }
            return false
        },
        _mouseStop: function(C) {
            var D = false;
            if (A.ui.ddmanager && !this.options.dropBehaviour) {
                var D = A.ui.ddmanager.drop(this, C)
            }
            if ((this.options.revert == "invalid" && !D) || (this.options.revert == "valid" && D) || this.options.revert === true || (A.isFunction(this.options.revert) && this.options.revert.call(this.element, D))) {
                var B = this;
                A(this.helper).animate(this.originalPosition, parseInt(this.options.revertDuration, 10), function() {
                    B._propagate("stop", C);
                    B._clear()
                })
            } else {
                this._propagate("stop", C);
                this._clear()
            }
            return false
        },
        _getHandle: function(B) {
            var C = !this.options.handle || !A(this.options.handle, this.element).length ? true : false;
            A(this.options.handle, this.element).find("*").andSelf().each(function() {
                if (this == B.target) {
                    C = true
                }
            });
            return C
        },
        _createHelper: function(C) {
            var D = this.options;
            var B = A.isFunction(D.helper) ? A(D.helper.apply(this.element[0], [C])) : (D.helper == "clone" ? this.element.clone() : this.element);
            if (!B.parents("body").length) {
                B.appendTo((D.appendTo == "parent" ? this.element[0].parentNode : D.appendTo))
            }
            if (B[0] != this.element[0] && !(/(fixed|absolute)/).test(B.css("position"))) {
                B.css("position", "absolute")
            }
            return B
        },
        _adjustOffsetFromHelper: function(B) {
            if (B.left != undefined) {
                this.offset.click.left = B.left + this.margins.left
            }
            if (B.right != undefined) {
                this.offset.click.left = this.helperProportions.width - B.right + this.margins.left
            }
            if (B.top != undefined) {
                this.offset.click.top = B.top + this.margins.top
            }
            if (B.bottom != undefined) {
                this.offset.click.top = this.helperProportions.height - B.bottom + this.margins.top
            }
        },
        _getParentOffset: function() {
            this.offsetParent = this.helper.offsetParent();
            var B = this.offsetParent.offset();
            if ((this.offsetParent[0] == document.body && A.browser.mozilla) || (this.offsetParent[0].tagName && this.offsetParent[0].tagName.toLowerCase() == "html" && A.browser.msie)) {
                B = {
                    top: 0,
                    left: 0
                }
            }
            return{
                top: B.top + (parseInt(this.offsetParent.css("borderTopWidth"), 10) || 0),
                left: B.left + (parseInt(this.offsetParent.css("borderLeftWidth"), 10) || 0)
            }
        },
        _getRelativeOffset: function() {
            if (this.cssPosition == "relative") {
                var B = this.element.position();
                return{
                    top: B.top - (parseInt(this.helper.css("top"), 10) || 0) + this.scrollParent.scrollTop(),
                    left: B.left - (parseInt(this.helper.css("left"), 10) || 0) + this.scrollParent.scrollLeft()
                }
            } else {
                return{
                    top: 0,
                    left: 0
                }
            }
        },
        _cacheMargins: function() {
            this.margins = {
                left: (parseInt(this.element.css("marginLeft"), 10) || 0),
                top: (parseInt(this.element.css("marginTop"), 10) || 0)
            }
        },
        _cacheHelperProportions: function() {
            this.helperProportions = {
                width: this.helper.outerWidth(),
                height: this.helper.outerHeight()
            }
        },
        _setContainment: function() {
            var E = this.options;
            if (E.containment == "parent") {
                E.containment = this.helper[0].parentNode
            }
            if (E.containment == "document" || E.containment == "window") {
                this.containment = [0 - this.offset.relative.left - this.offset.parent.left, 0 - this.offset.relative.top - this.offset.parent.top, A(E.containment == "document" ? document : window).width() - this.offset.relative.left - this.offset.parent.left - this.helperProportions.width - this.margins.left - (parseInt(this.element.css("marginRight"), 10) || 0), (A(E.containment == "document" ? document : window).height() || document.body.parentNode.scrollHeight) - this.offset.relative.top - this.offset.parent.top - this.helperProportions.height - this.margins.top - (parseInt(this.element.css("marginBottom"), 10) || 0)]
            }
            if (!(/^(document|window|parent)$/).test(E.containment)) {
                var C = A(E.containment)[0];
                var D = A(E.containment).offset();
                var B = (A(C).css("overflow") != "hidden");
                this.containment = [D.left + (parseInt(A(C).css("borderLeftWidth"), 10) || 0) - this.offset.relative.left - this.offset.parent.left - this.margins.left, D.top + (parseInt(A(C).css("borderTopWidth"), 10) || 0) - this.offset.relative.top - this.offset.parent.top - this.margins.top, D.left + (B ? Math.max(C.scrollWidth, C.offsetWidth) : C.offsetWidth) - (parseInt(A(C).css("borderLeftWidth"), 10) || 0) - this.offset.relative.left - this.offset.parent.left - this.helperProportions.width - this.margins.left, D.top + (B ? Math.max(C.scrollHeight, C.offsetHeight) : C.offsetHeight) - (parseInt(A(C).css("borderTopWidth"), 10) || 0) - this.offset.relative.top - this.offset.parent.top - this.helperProportions.height - this.margins.top]
            }
        },
        _convertPositionTo: function(D, F) {
            if (!F) {
                F = this.position
            }
            var C = D == "absolute" ? 1 : -1;
            var B = this[(this.cssPosition == "absolute" ? "offset" : "scroll") + "Parent"], E = (/(html|body)/i).test(B[0].tagName);
            return{
                top: (F.top + this.offset.relative.top * C + this.offset.parent.top * C + (this.cssPosition == "fixed" ? -this.scrollParent.scrollTop() : (E ? 0 : B.scrollTop())) * C + this.margins.top * C),
                left: (F.left + this.offset.relative.left * C + this.offset.parent.left * C + (this.cssPosition == "fixed" ? -this.scrollParent.scrollLeft() : (E ? 0 : B.scrollLeft())) * C + this.margins.left * C)
            }
        },
        _generatePosition: function(D) {
            var G = this.options, C = this[(this.cssPosition == "absolute" ? "offset" : "scroll") + "Parent"], H = (/(html|body)/i).test(C[0].tagName);
            var B = {
                top: (D.pageY - this.offset.click.top - this.offset.relative.top - this.offset.parent.top + (this.cssPosition == "fixed" ? -this.scrollParent.scrollTop() : (H ? 0 : C.scrollTop()))),
                left: (D.pageX - this.offset.click.left - this.offset.relative.left - this.offset.parent.left + (this.cssPosition == "fixed" ? -this.scrollParent.scrollLeft() : H ? 0 : C.scrollLeft()))
            };

            if (!this.originalPosition) {
                return B
            }
            if (this.containment) {
                if (B.left < this.containment[0]) {
                    B.left = this.containment[0]
                }
                if (B.top < this.containment[1]) {
                    B.top = this.containment[1]
                }
                if (B.left > this.containment[2]) {
                    B.left = this.containment[2]
                }
                if (B.top > this.containment[3]) {
                    B.top = this.containment[3]
                }
            }
            if (G.grid) {
                var F = this.originalPosition.top + Math.round((B.top - this.originalPosition.top) / G.grid[1]) * G.grid[1];
                B.top = this.containment ? (!(F < this.containment[1] || F > this.containment[3]) ? F : (!(F < this.containment[1]) ? F - G.grid[1] : F + G.grid[1])) : F;
                var E = this.originalPosition.left + Math.round((B.left - this.originalPosition.left) / G.grid[0]) * G.grid[0];
                B.left = this.containment ? (!(E < this.containment[0] || E > this.containment[2]) ? E : (!(E < this.containment[0]) ? E - G.grid[0] : E + G.grid[0])) : E
            }
            return B
        },
        _clear: function() {
            this.helper.removeClass("ui-draggable-dragging");
            if (this.helper[0] != this.element[0] && !this.cancelHelperRemoval) {
                this.helper.remove()
            }
            this.helper = null;
            this.cancelHelperRemoval = false
        },
        _propagate: function(C, B) {
            A.ui.plugin.call(this, C, [B, this._uiHash()]);
            if (C == "drag") {
                this.positionAbs = this._convertPositionTo("absolute")
            }
            return this.element.triggerHandler(C == "drag" ? C : "drag" + C, [B, this._uiHash()], this.options[C])
        },
        plugins: {},
        _uiHash: function(B) {
            return{
                helper: this.helper,
                position: this.position,
                absolutePosition: this.positionAbs,
                options: this.options
            }
        }
    }));
    A.extend(A.ui.draggable, {
        version: "1.6",
        defaults: {
            appendTo: "parent",
            axis: false,
            cancel: ":input",
            connectToSortable: false,
            containment: false,
            cssNamespace: "ui",
            cursor: "default",
            cursorAt: null,
            delay: 0,
            distance: 1,
            grid: false,
            handle: false,
            helper: "original",
            iframeFix: false,
            opacity: 1,
            refreshPositions: false,
            revert: false,
            revertDuration: 500,
            scope: "default",
            scroll: true,
            scrollSensitivity: 20,
            scrollSpeed: 20,
            snap: false,
            snapMode: "both",
            snapTolerance: 20,
            stack: false,
            zIndex: null
        }
    });
    A.ui.plugin.add("draggable", "connectToSortable", {
        start: function(B, D) {
            var C = A(this).data("draggable");
            C.sortables = [];
            A(D.options.connectToSortable).each(function() {
                A(this + "").each(function() {
                    if (A.data(this, "sortable")) {
                        var E = A.data(this, "sortable");
                        C.sortables.push({
                            instance: E,
                            shouldRevert: E.options.revert
                        });
                        E._refreshItems();
                        E._propagate("activate", B, C)
                    }
                })
            })
        },
        stop: function(B, D) {
            var C = A(this).data("draggable");
            A.each(C.sortables, function() {
                if (this.instance.isOver) {
                    this.instance.isOver = 0;
                    C.cancelHelperRemoval = true;
                    this.instance.cancelHelperRemoval = false;
                    if (this.shouldRevert) {
                        this.instance.options.revert = true
                    }
                    this.instance._mouseStop(B);
                    this.instance.element.triggerHandler("sortreceive", [B, A.extend(this.instance._ui(), {
                            sender: C.element
                        })], this.instance.options["receive"]);
                    this.instance.options.helper = this.instance.options._helper;
                    if (C.options.helper == "original") {
                        this.instance.currentItem.css({
                            top: "auto",
                            left: "auto"
                        })
                    }
                } else {
                    this.instance.cancelHelperRemoval = false;
                    this.instance._propagate("deactivate", B, C)
                }
            })
        },
        drag: function(C, F) {
            var E = A(this).data("draggable"), B = this;
            var D = function(I) {
                var N = this.offset.click.top, M = this.offset.click.left;
                var G = this.positionAbs.top, K = this.positionAbs.left;
                var J = I.height, L = I.width;
                var O = I.top, H = I.left;
                return A.ui.isOver(G + N, K + M, O, H, J, L)
            };

            A.each(E.sortables, function(G) {
                if (D.call(E, this.instance.containerCache)) {
                    if (!this.instance.isOver) {
                        this.instance.isOver = 1;
                        this.instance.currentItem = A(B).clone().appendTo(this.instance.element).data("sortable-item", true);
                        this.instance.options._helper = this.instance.options.helper;
                        this.instance.options.helper = function() {
                            return F.helper[0]
                        };

                        C.target = this.instance.currentItem[0];
                        this.instance._mouseCapture(C, true);
                        this.instance._mouseStart(C, true, true);
                        this.instance.offset.click.top = E.offset.click.top;
                        this.instance.offset.click.left = E.offset.click.left;
                        this.instance.offset.parent.left -= E.offset.parent.left - this.instance.offset.parent.left;
                        this.instance.offset.parent.top -= E.offset.parent.top - this.instance.offset.parent.top;
                        E._propagate("toSortable", C)
                    }
                    if (this.instance.currentItem) {
                        this.instance._mouseDrag(C)
                    }
                } else {
                    if (this.instance.isOver) {
                        this.instance.isOver = 0;
                        this.instance.cancelHelperRemoval = true;
                        this.instance.options.revert = false;
                        this.instance._mouseStop(C, true);
                        this.instance.options.helper = this.instance.options._helper;
                        this.instance.currentItem.remove();
                        if (this.instance.placeholder) {
                            this.instance.placeholder.remove()
                        }
                        E._propagate("fromSortable", C)
                    }
                }
            })
        }
    });
    A.ui.plugin.add("draggable", "cursor", {
        start: function(C, D) {
            var B = A("body");
            if (B.css("cursor")) {
                D.options._cursor = B.css("cursor")
            }
            B.css("cursor", D.options.cursor)
        },
        stop: function(B, C) {
            if (C.options._cursor) {
                A("body").css("cursor", C.options._cursor)
            }
        }
    });
    A.ui.plugin.add("draggable", "iframeFix", {
        start: function(B, C) {
            A(C.options.iframeFix === true ? "iframe" : C.options.iframeFix).each(function() {
                A('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({
                    width: this.offsetWidth + "px",
                    height: this.offsetHeight + "px",
                    position: "absolute",
                    opacity: "0.001",
                    zIndex: 1000
                }).css(A(this).offset()).appendTo("body")
            })
        },
        stop: function(B, C) {
            A("div.ui-draggable-iframeFix").each(function() {
                this.parentNode.removeChild(this)
            })
        }
    });
    A.ui.plugin.add("draggable", "opacity", {
        start: function(C, D) {
            var B = A(D.helper);
            if (B.css("opacity")) {
                D.options._opacity = B.css("opacity")
            }
            B.css("opacity", D.options.opacity)
        },
        stop: function(B, C) {
            if (C.options._opacity) {
                A(C.helper).css("opacity", C.options._opacity)
            }
        }
    });
    A.ui.plugin.add("draggable", "scroll", {
        start: function(C, D) {
            var E = D.options;
            var B = A(this).data("draggable");
            if (B.scrollParent[0] != document && B.scrollParent[0].tagName != "HTML") {
                B.overflowOffset = B.scrollParent.offset()
            }
        },
        drag: function(D, E) {
            var F = E.options, B = false;
            var C = A(this).data("draggable");
            if (C.scrollParent[0] != document && C.scrollParent[0].tagName != "HTML") {
                if ((C.overflowOffset.top + C.scrollParent[0].offsetHeight) - D.pageY < F.scrollSensitivity) {
                    C.scrollParent[0].scrollTop = B = C.scrollParent[0].scrollTop + F.scrollSpeed
                } else {
                    if (D.pageY - C.overflowOffset.top < F.scrollSensitivity) {
                        C.scrollParent[0].scrollTop = B = C.scrollParent[0].scrollTop - F.scrollSpeed
                    }
                }
                if ((C.overflowOffset.left + C.scrollParent[0].offsetWidth) - D.pageX < F.scrollSensitivity) {
                    C.scrollParent[0].scrollLeft = B = C.scrollParent[0].scrollLeft + F.scrollSpeed
                } else {
                    if (D.pageX - C.overflowOffset.left < F.scrollSensitivity) {
                        C.scrollParent[0].scrollLeft = B = C.scrollParent[0].scrollLeft - F.scrollSpeed
                    }
                }
            } else {
                if (D.pageY - A(document).scrollTop() < F.scrollSensitivity) {
                    B = A(document).scrollTop(A(document).scrollTop() - F.scrollSpeed)
                } else {
                    if (A(window).height() - (D.pageY - A(document).scrollTop()) < F.scrollSensitivity) {
                        B = A(document).scrollTop(A(document).scrollTop() + F.scrollSpeed)
                    }
                }
                if (D.pageX - A(document).scrollLeft() < F.scrollSensitivity) {
                    B = A(document).scrollLeft(A(document).scrollLeft() - F.scrollSpeed)
                } else {
                    if (A(window).width() - (D.pageX - A(document).scrollLeft()) < F.scrollSensitivity) {
                        B = A(document).scrollLeft(A(document).scrollLeft() + F.scrollSpeed)
                    }
                }
            }
            if (B !== false && A.ui.ddmanager && !F.dropBehaviour) {
                A.ui.ddmanager.prepareOffsets(C, D)
            }
            if (B !== false && C.cssPosition == "absolute" && C.scrollParent[0] != document && A.ui.contains(C.scrollParent[0], C.offsetParent[0])) {
                C.offset.parent = C._getParentOffset()
            }
            if (B !== false && C.cssPosition == "relative" && !(C.scrollParent[0] != document && C.scrollParent[0] != C.offsetParent[0])) {
                C.offset.relative = C._getRelativeOffset()
            }
        }
    });
    A.ui.plugin.add("draggable", "snap", {
        start: function(B, D) {
            var C = A(this).data("draggable");
            C.snapElements = [];
            A(D.options.snap.constructor != String ? (D.options.snap.items || ":data(draggable)") : D.options.snap).each(function() {
                var F = A(this);
                var E = F.offset();
                if (this != C.element[0]) {
                    C.snapElements.push({
                        item: this,
                        width: F.outerWidth(),
                        height: F.outerHeight(),
                        top: E.top,
                        left: E.left
                    })
                }
            })
        },
        drag: function(M, K) {
            var E = A(this).data("draggable");
            var Q = K.options.snapTolerance;
            var P = K.absolutePosition.left, O = P + E.helperProportions.width, D = K.absolutePosition.top, C = D + E.helperProportions.height;
            for (var N = E.snapElements.length - 1; N >= 0; N--) {
                var L = E.snapElements[N].left, J = L + E.snapElements[N].width, I = E.snapElements[N].top, S = I + E.snapElements[N].height;
                if (!((L - Q < P && P < J + Q && I - Q < D && D < S + Q) || (L - Q < P && P < J + Q && I - Q < C && C < S + Q) || (L - Q < O && O < J + Q && I - Q < D && D < S + Q) || (L - Q < O && O < J + Q && I - Q < C && C < S + Q))) {
                    if (E.snapElements[N].snapping) {
                        (E.options.snap.release && E.options.snap.release.call(E.element, M, A.extend(E._uiHash(), {
                            snapItem: E.snapElements[N].item
                        })))
                    }
                    E.snapElements[N].snapping = false;
                    continue
                }
                if (K.options.snapMode != "inner") {
                    var B = Math.abs(I - C) <= Q;
                    var R = Math.abs(S - D) <= Q;
                    var G = Math.abs(L - O) <= Q;
                    var H = Math.abs(J - P) <= Q;
                    if (B) {
                        K.position.top = E._convertPositionTo("relative", {
                            top: I - E.helperProportions.height,
                            left: 0
                        }).top
                    }
                    if (R) {
                        K.position.top = E._convertPositionTo("relative", {
                            top: S,
                            left: 0
                        }).top
                    }
                    if (G) {
                        K.position.left = E._convertPositionTo("relative", {
                            top: 0,
                            left: L - E.helperProportions.width
                        }).left
                    }
                    if (H) {
                        K.position.left = E._convertPositionTo("relative", {
                            top: 0,
                            left: J
                        }).left
                    }
                }
                var F = (B || R || G || H);
                if (K.options.snapMode != "outer") {
                    var B = Math.abs(I - D) <= Q;
                    var R = Math.abs(S - C) <= Q;
                    var G = Math.abs(L - P) <= Q;
                    var H = Math.abs(J - O) <= Q;
                    if (B) {
                        K.position.top = E._convertPositionTo("relative", {
                            top: I,
                            left: 0
                        }).top
                    }
                    if (R) {
                        K.position.top = E._convertPositionTo("relative", {
                            top: S - E.helperProportions.height,
                            left: 0
                        }).top
                    }
                    if (G) {
                        K.position.left = E._convertPositionTo("relative", {
                            top: 0,
                            left: L
                        }).left
                    }
                    if (H) {
                        K.position.left = E._convertPositionTo("relative", {
                            top: 0,
                            left: J - E.helperProportions.width
                        }).left
                    }
                }
                if (!E.snapElements[N].snapping && (B || R || G || H || F)) {
                    (E.options.snap.snap && E.options.snap.snap.call(E.element, M, A.extend(E._uiHash(), {
                        snapItem: E.snapElements[N].item
                    })))
                }
                E.snapElements[N].snapping = (B || R || G || H || F)
            }
        }
    });
    A.ui.plugin.add("draggable", "stack", {
        start: function(B, C) {
            var D = A.makeArray(A(C.options.stack.group)).sort(function(F, E) {
                return(parseInt(A(F).css("zIndex"), 10) || C.options.stack.min) - (parseInt(A(E).css("zIndex"), 10) || C.options.stack.min)
            });
            A(D).each(function(E) {
                this.style.zIndex = C.options.stack.min + E
            });
            this[0].style.zIndex = C.options.stack.min + D.length
        }
    });
    A.ui.plugin.add("draggable", "zIndex", {
        start: function(C, D) {
            var B = A(D.helper);
            if (B.css("zIndex")) {
                D.options._zIndex = B.css("zIndex")
            }
            B.css("zIndex", D.options.zIndex)
        },
        stop: function(B, C) {
            if (C.options._zIndex) {
                A(C.helper).css("zIndex", C.options._zIndex)
            }
        }
    })
})(jQuery);
(function(A) {
    A.widget("ui.droppable", {
        _init: function() {
            var C = this.options, B = C.accept;
            this.isover = 0;
            this.isout = 1;
            this.options.accept = this.options.accept && A.isFunction(this.options.accept) ? this.options.accept : function(D) {
                return D.is(B)
            };

            this.proportions = {
                width: this.element[0].offsetWidth,
                height: this.element[0].offsetHeight
            };

            A.ui.ddmanager.droppables[this.options.scope] = A.ui.ddmanager.droppables[this.options.scope] || [];
            A.ui.ddmanager.droppables[this.options.scope].push(this);
            (this.options.cssNamespace && this.element.addClass(this.options.cssNamespace + "-droppable"))
        },
        destroy: function() {
            var B = A.ui.ddmanager.droppables[this.options.scope];
            for (var C = 0; C < B.length; C++) {
                if (B[C] == this) {
                    B.splice(C, 1)
                }
            }
            this.element.removeClass("ui-droppable-disabled").removeData("droppable").unbind(".droppable")
        },
        _setData: function(B, C) {
            if (B == "accept") {
                this.options.accept = C && A.isFunction(C) ? C : function(D) {
                    return D.is(accept)
                }
            } else {
                A.widget.prototype._setData.apply(this, arguments)
            }
        },
        _activate: function(C) {
            var B = A.ui.ddmanager.current;
            A.ui.plugin.call(this, "activate", [C, this.ui(B)]);
            if (B) {
                this.element.triggerHandler("dropactivate", [C, this.ui(B)], this.options.activate)
            }
        },
        _deactivate: function(C) {
            var B = A.ui.ddmanager.current;
            A.ui.plugin.call(this, "deactivate", [C, this.ui(B)]);
            if (B) {
                this.element.triggerHandler("dropdeactivate", [C, this.ui(B)], this.options.deactivate)
            }
        },
        _over: function(C) {
            var B = A.ui.ddmanager.current;
            if (!B || (B.currentItem || B.element)[0] == this.element[0]) {
                return
            }
            if (this.options.accept.call(this.element, (B.currentItem || B.element))) {
                A.ui.plugin.call(this, "over", [C, this.ui(B)]);
                this.element.triggerHandler("dropover", [C, this.ui(B)], this.options.over)
            }
        },
        _out: function(C) {
            var B = A.ui.ddmanager.current;
            if (!B || (B.currentItem || B.element)[0] == this.element[0]) {
                return
            }
            if (this.options.accept.call(this.element, (B.currentItem || B.element))) {
                A.ui.plugin.call(this, "out", [C, this.ui(B)]);
                this.element.triggerHandler("dropout", [C, this.ui(B)], this.options.out)
            }
        },
        _drop: function(C, D) {
            var B = D || A.ui.ddmanager.current;
            if (!B || (B.currentItem || B.element)[0] == this.element[0]) {
                return false
            }
            var E = false;
            this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function() {
                var F = A.data(this, "droppable");
                if (F.options.greedy && A.ui.intersect(B, A.extend(F, {
                    offset: F.element.offset()
                }), F.options.tolerance)) {
                    E = true;
                    return false
                }
            });
            if (E) {
                return false
            }
            if (this.options.accept.call(this.element, (B.currentItem || B.element))) {
                A.ui.plugin.call(this, "drop", [C, this.ui(B)]);
                this.element.triggerHandler("drop", [C, this.ui(B)], this.options.drop);
                return this.element
            }
            return false
        },
        plugins: {},
        ui: function(B) {
            return{
                draggable: (B.currentItem || B.element),
                helper: B.helper,
                position: B.position,
                absolutePosition: B.positionAbs,
                options: this.options,
                element: this.element
            }
        }
    });
    A.extend(A.ui.droppable, {
        version: "1.6",
        defaults: {
            accept: "*",
            activeClass: null,
            cssNamespace: "ui",
            greedy: false,
            hoverClass: null,
            scope: "default",
            tolerance: "intersect"
        }
    });
    A.ui.intersect = function(O, I, M) {
        if (!I.offset) {
            return false
        }
        var D = (O.positionAbs || O.position.absolute).left, C = D + O.helperProportions.width, L = (O.positionAbs || O.position.absolute).top, K = L + O.helperProportions.height;
        var F = I.offset.left, B = F + I.proportions.width, N = I.offset.top, J = N + I.proportions.height;
        switch (M) {
            case"fit":
                return(F < D && C < B && N < L && K < J);
                break;
            case"intersect":
                return(F < D + (O.helperProportions.width / 2) && C - (O.helperProportions.width / 2) < B && N < L + (O.helperProportions.height / 2) && K - (O.helperProportions.height / 2) < J);
                break;
            case"pointer":
                var G = ((O.positionAbs || O.position.absolute).left + (O.clickOffset || O.offset.click).left), H = ((O.positionAbs || O.position.absolute).top + (O.clickOffset || O.offset.click).top), E = A.ui.isOver(H, G, N, F, I.proportions.height, I.proportions.width);
                return E;
                break;
            case"touch":
                return((L >= N && L <= J) || (K >= N && K <= J) || (L < N && K > J)) && ((D >= F && D <= B) || (C >= F && C <= B) || (D < F && C > B));
                break;
            default:
                return false;
                break
        }
    };

    A.ui.ddmanager = {
        current: null,
        droppables: {
            "default": []
        },
        prepareOffsets: function(E, G) {
            var B = A.ui.ddmanager.droppables[E.options.scope];
            var F = G ? G.type : null;
            var H = (E.currentItem || E.element).find(":data(droppable)").andSelf();
            droppablesLoop:for (var D = 0; D < B.length; D++) {
                if (B[D].options.disabled || (E && !B[D].options.accept.call(B[D].element, (E.currentItem || E.element)))) {
                    continue
                }
                for (var C = 0; C < H.length; C++) {
                    if (H[C] == B[D].element[0]) {
                        B[D].proportions.height = 0;
                        continue droppablesLoop
                    }
                }
                B[D].visible = B[D].element.css("display") != "none";
                if (!B[D].visible) {
                    continue
                }
                B[D].offset = B[D].element.offset();
                B[D].proportions = {
                    width: B[D].element[0].offsetWidth,
                    height: B[D].element[0].offsetHeight
                };

                if (F == "dragstart" || F == "sortactivate") {
                    B[D]._activate.call(B[D], G)
                }
            }
        },
        drop: function(B, C) {
            var D = false;
            A.each(A.ui.ddmanager.droppables[B.options.scope], function() {
                if (!this.options) {
                    return
                }
                if (!this.options.disabled && this.visible && A.ui.intersect(B, this, this.options.tolerance)) {
                    D = this._drop.call(this, C)
                }
                if (!this.options.disabled && this.visible && this.options.accept.call(this.element, (B.currentItem || B.element))) {
                    this.isout = 1;
                    this.isover = 0;
                    this._deactivate.call(this, C)
                }
            });
            return D
        },
        drag: function(B, C) {
            if (B.options.refreshPositions) {
                A.ui.ddmanager.prepareOffsets(B, C)
            }
            A.each(A.ui.ddmanager.droppables[B.options.scope], function() {
                if (this.options.disabled || this.greedyChild || !this.visible) {
                    return
                }
                var E = A.ui.intersect(B, this, this.options.tolerance);
                var G = !E && this.isover == 1 ? "isout" : (E && this.isover == 0 ? "isover" : null);
                if (!G) {
                    return
                }
                var F;
                if (this.options.greedy) {
                    var D = this.element.parents(":data(droppable):eq(0)");
                    if (D.length) {
                        F = A.data(D[0], "droppable");
                        F.greedyChild = (G == "isover" ? 1 : 0)
                    }
                }
                if (F && G == "isover") {
                    F["isover"] = 0;
                    F["isout"] = 1;
                    F._out.call(F, C)
                }
                this[G] = 1;
                this[G == "isout" ? "isover" : "isout"] = 0;
                this[G == "isover" ? "_over" : "_out"].call(this, C);
                if (F && G == "isout") {
                    F["isout"] = 0;
                    F["isover"] = 1;
                    F._over.call(F, C)
                }
            })
        }
    };

    A.ui.plugin.add("droppable", "activeClass", {
        activate: function(B, C) {
            A(this).addClass(C.options.activeClass)
        },
        deactivate: function(B, C) {
            A(this).removeClass(C.options.activeClass)
        },
        drop: function(B, C) {
            A(this).removeClass(C.options.activeClass)
        }
    });
    A.ui.plugin.add("droppable", "hoverClass", {
        over: function(B, C) {
            A(this).addClass(C.options.hoverClass)
        },
        out: function(B, C) {
            A(this).removeClass(C.options.hoverClass)
        },
        drop: function(B, C) {
            A(this).removeClass(C.options.hoverClass)
        }
    })
})(jQuery);
(function(B) {
    B.widget("ui.resizable", B.extend({}, B.ui.mouse, {
        _init: function() {
            var N = this, O = this.options;
            var R = this.element.css("position");
            this.originalElement = this.element;
            this.element.addClass("ui-resizable").css({
                position: /static/.test(R) ? "relative" : R
            });
            B.extend(O, {
                _aspectRatio: !!(O.aspectRatio),
                helper: O.helper || O.ghost || O.animate ? O.helper || "ui-resizable-helper" : null,
                knobHandles: O.knobHandles === true ? "ui-resizable-knob-handle" : O.knobHandles
            });
            var I = "1px solid #DEDEDE";
            O.defaultTheme = {
                "ui-resizable": {
                    display: "block"
                },
                "ui-resizable-handle": {
                    position: "absolute",
                    background: "#F2F2F2",
                    fontSize: "0.1px"
                },
                "ui-resizable-n": {
                    cursor: "n-resize",
                    height: "4px",
                    left: "0px",
                    right: "0px",
                    borderTop: I
                },
                "ui-resizable-s": {
                    cursor: "s-resize",
                    height: "4px",
                    left: "0px",
                    right: "0px",
                    borderBottom: I
                },
                "ui-resizable-e": {
                    cursor: "e-resize",
                    width: "4px",
                    top: "0px",
                    bottom: "0px",
                    borderRight: I
                },
                "ui-resizable-w": {
                    cursor: "w-resize",
                    width: "4px",
                    top: "0px",
                    bottom: "0px",
                    borderLeft: I
                },
                "ui-resizable-se": {
                    cursor: "se-resize",
                    width: "4px",
                    height: "4px",
                    borderRight: I,
                    borderBottom: I
                },
                "ui-resizable-sw": {
                    cursor: "sw-resize",
                    width: "4px",
                    height: "4px",
                    borderBottom: I,
                    borderLeft: I
                },
                "ui-resizable-ne": {
                    cursor: "ne-resize",
                    width: "4px",
                    height: "4px",
                    borderRight: I,
                    borderTop: I
                },
                "ui-resizable-nw": {
                    cursor: "nw-resize",
                    width: "4px",
                    height: "4px",
                    borderLeft: I,
                    borderTop: I
                }
            };

            O.knobTheme = {
                "ui-resizable-handle": {
                    background: "#F2F2F2",
                    border: "1px solid #808080",
                    height: "8px",
                    width: "8px"
                },
                "ui-resizable-n": {
                    cursor: "n-resize",
                    top: "0px",
                    left: "45%"
                },
                "ui-resizable-s": {
                    cursor: "s-resize",
                    bottom: "0px",
                    left: "45%"
                },
                "ui-resizable-e": {
                    cursor: "e-resize",
                    right: "0px",
                    top: "45%"
                },
                "ui-resizable-w": {
                    cursor: "w-resize",
                    left: "0px",
                    top: "45%"
                },
                "ui-resizable-se": {
                    cursor: "se-resize",
                    right: "0px",
                    bottom: "0px"
                },
                "ui-resizable-sw": {
                    cursor: "sw-resize",
                    left: "0px",
                    bottom: "0px"
                },
                "ui-resizable-nw": {
                    cursor: "nw-resize",
                    left: "0px",
                    top: "0px"
                },
                "ui-resizable-ne": {
                    cursor: "ne-resize",
                    right: "0px",
                    top: "0px"
                }
            };

            O._nodeName = this.element[0].nodeName;
            if (O._nodeName.match(/canvas|textarea|input|select|button|img/i)) {
                var C = this.element;
                if (/relative/.test(C.css("position")) && B.browser.opera) {
                    C.css({
                        position: "relative",
                        top: "auto",
                        left: "auto"
                    })
                }
                C.wrap(B('<div class="ui-wrapper"	style="overflow: hidden;"></div>').css({
                    position: C.css("position"),
                    width: C.outerWidth(),
                    height: C.outerHeight(),
                    top: C.css("top"),
                    left: C.css("left")
                }));
                var K = this.element;
                this.element = this.element.parent();
                this.element.data("resizable", this);
                this.element.css({
                    marginLeft: K.css("marginLeft"),
                    marginTop: K.css("marginTop"),
                    marginRight: K.css("marginRight"),
                    marginBottom: K.css("marginBottom")
                });
                K.css({
                    marginLeft: 0,
                    marginTop: 0,
                    marginRight: 0,
                    marginBottom: 0
                });
                if (B.browser.safari && O.preventDefault) {
                    K.css("resize", "none")
                }
                O.proportionallyResize = K.css({
                    position: "static",
                    zoom: 1,
                    display: "block"
                });
                this.element.css({
                    margin: K.css("margin")
                });
                this._proportionallyResize()
            }
            if (!O.handles) {
                O.handles = !B(".ui-resizable-handle", this.element).length ? "e,s,se" : {
                    n: ".ui-resizable-n",
                    e: ".ui-resizable-e",
                    s: ".ui-resizable-s",
                    w: ".ui-resizable-w",
                    se: ".ui-resizable-se",
                    sw: ".ui-resizable-sw",
                    ne: ".ui-resizable-ne",
                    nw: ".ui-resizable-nw"
                }
            }
            if (O.handles.constructor == String) {
                O.zIndex = O.zIndex || 1000;
                if (O.handles == "all") {
                    O.handles = "n,e,s,w,se,sw,ne,nw"
                }
                var P = O.handles.split(",");
                O.handles = {};

                var H = {
                    handle: "position: absolute; display: none; overflow:hidden;",
                    n: "top: 0pt; width:100%;",
                    e: "right: 0pt; height:100%;",
                    s: "bottom: 0pt; width:100%;",
                    w: "left: 0pt; height:100%;",
                    se: "bottom: 0pt; right: 0px;",
                    sw: "bottom: 0pt; left: 0px;",
                    ne: "top: 0pt; right: 0px;",
                    nw: "top: 0pt; left: 0px;"
                };

                for (var S = 0; S < P.length; S++) {
                    var T = B.trim(P[S]), M = O.defaultTheme, G = "ui-resizable-" + T, D = !B.ui.css(G) && !O.knobHandles, Q = B.ui.css("ui-resizable-knob-handle"), U = B.extend(M[G], M["ui-resizable-handle"]), E = B.extend(O.knobTheme[G], !Q ? O.knobTheme["ui-resizable-handle"] : {});
                    var L = /sw|se|ne|nw/.test(T) ? {
                        zIndex: ++O.zIndex
                    } : {};

                    var J = (D ? H[T] : ""), F = B(['<div class="ui-resizable-handle ', G, '" style="', J, H.handle, '"></div>'].join("")).css(L);
                    O.handles[T] = ".ui-resizable-" + T;
                    this.element.append(F.css(D ? U : {}).css(O.knobHandles ? E : {}).addClass(O.knobHandles ? "ui-resizable-knob-handle" : "").addClass(O.knobHandles))
                }
                if (O.knobHandles) {
                    this.element.addClass("ui-resizable-knob").css(!B.ui.css("ui-resizable-knob") ? {} : {})
                }
            }
            this._renderAxis = function(Z) {
                Z = Z || this.element;
                for (var W in O.handles) {
                    if (O.handles[W].constructor == String) {
                        O.handles[W] = B(O.handles[W], this.element).show()
                    }
                    if (O.transparent) {
                        O.handles[W].css({
                            opacity: 0
                        })
                    }
                    if (this.element.is(".ui-wrapper") && O._nodeName.match(/textarea|input|select|button/i)) {
                        var X = B(O.handles[W], this.element), Y = 0;
                        Y = /sw|ne|nw|se|n|s/.test(W) ? X.outerHeight() : X.outerWidth();
                        var V = ["padding", /ne|nw|n/.test(W) ? "Top" : /se|sw|s/.test(W) ? "Bottom" : /^e$/.test(W) ? "Right" : "Left"].join("");
                        if (!O.transparent) {
                            Z.css(V, Y)
                        }
                        this._proportionallyResize()
                    }
                    if (!B(O.handles[W]).length) {
                        continue
                    }
                }
            };

            this._renderAxis(this.element);
            O._handles = B(".ui-resizable-handle", N.element);
            if (O.disableSelection) {
                O._handles.disableSelection()
            }
            O._handles.mouseover(function() {
                if (!O.resizing) {
                    if (this.className) {
                        var V = this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)
                    }
                    N.axis = O.axis = V && V[1] ? V[1] : "se"
                }
            });
            if (O.autoHide) {
                O._handles.hide();
                B(N.element).addClass("ui-resizable-autohide").hover(function() {
                    B(this).removeClass("ui-resizable-autohide");
                    O._handles.show()
                }, function() {
                    if (!O.resizing) {
                        B(this).addClass("ui-resizable-autohide");
                        O._handles.hide()
                    }
                })
            }
            this._mouseInit()
        },
        destroy: function() {
            var E = this.element, D = E.children(".ui-resizable").get(0);
            this._mouseDestroy();
            var C = function(F) {
                B(F).removeClass("ui-resizable ui-resizable-disabled").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()
            };

            C(E);
            if (E.is(".ui-wrapper") && D) {
                E.parent().append(B(D).css({
                    position: E.css("position"),
                    width: E.outerWidth(),
                    height: E.outerHeight(),
                    top: E.css("top"),
                    left: E.css("left")
                })).end().remove();
                C(D)
            }
        },
        _mouseCapture: function(D) {
            if (this.options.disabled) {
                return false
            }
            var E = false;
            for (var C in this.options.handles) {
                if (B(this.options.handles[C])[0] == D.target) {
                    E = true
                }
            }
            if (!E) {
                return false
            }
            return true
        },
        _mouseStart: function(D) {
            var E = this.options, C = this.element.position(), F = this.element, I = B.browser.msie && B.browser.version < 7;
            E.resizing = true;
            E.documentScroll = {
                top: B(document).scrollTop(),
                left: B(document).scrollLeft()
            };

            if (F.is(".ui-draggable") || (/absolute/).test(F.css("position"))) {
                var K = B.browser.msie && !E.containment && (/absolute/).test(F.css("position")) && !(/relative/).test(F.parent().css("position"));
                var L = K ? this.documentScroll.top : 0, H = K ? this.documentScroll.left : 0;
                F.css({
                    position: "absolute",
                    top: (C.top + L),
                    left: (C.left + H)
                })
            }
            if (B.browser.opera && (/relative/).test(F.css("position"))) {
                F.css({
                    position: "relative",
                    top: "auto",
                    left: "auto"
                })
            }
            this._renderProxy();
            var M = A(this.helper.css("left")), G = A(this.helper.css("top"));
            if (E.containment) {
                M += B(E.containment).scrollLeft() || 0;
                G += B(E.containment).scrollTop() || 0
            }
            this.offset = this.helper.offset();
            this.position = {
                left: M,
                top: G
            };

            this.size = E.helper || I ? {
                width: F.outerWidth(),
                height: F.outerHeight()
            } : {
                width: F.width(),
                height: F.height()
            };

            this.originalSize = E.helper || I ? {
                width: F.outerWidth(),
                height: F.outerHeight()
            } : {
                width: F.width(),
                height: F.height()
            };

            this.originalPosition = {
                left: M,
                top: G
            };

            this.sizeDiff = {
                width: F.outerWidth() - F.width(),
                height: F.outerHeight() - F.height()
            };

            this.originalMousePosition = {
                left: D.pageX,
                top: D.pageY
            };

            E.aspectRatio = (typeof E.aspectRatio == "number") ? E.aspectRatio : ((this.originalSize.width / this.originalSize.height) || 1);
            if (E.preserveCursor) {
                var J = B(".ui-resizable-" + this.axis).css("cursor");
                B("body").css("cursor", J == "auto" ? this.axis + "-resize" : J)
            }
            this._propagate("start", D);
            return true
        },
        _mouseDrag: function(C) {
            var F = this.helper, E = this.options, K = {}, N = this, H = this.originalMousePosition, L = this.axis;
            var O = (C.pageX - H.left) || 0, M = (C.pageY - H.top) || 0;
            var G = this._change[L];
            if (!G) {
                return false
            }
            var J = G.apply(this, [C, O, M]), I = B.browser.msie && B.browser.version < 7, D = this.sizeDiff;
            if (E._aspectRatio || C.shiftKey) {
                J = this._updateRatio(J, C)
            }
            J = this._respectSize(J, C);
            this._propagate("resize", C);
            F.css({
                top: this.position.top + "px",
                left: this.position.left + "px",
                width: this.size.width + "px",
                height: this.size.height + "px"
            });
            if (!E.helper && E.proportionallyResize) {
                this._proportionallyResize()
            }
            this._updateCache(J);
            this.element.triggerHandler("resize", [C, this.ui()], this.options["resize"]);
            return false
        },
        _mouseStop: function(F) {
            this.options.resizing = false;
            var G = this.options, K = this;
            if (G.helper) {
                var E = G.proportionallyResize, C = E && (/textarea/i).test(E.get(0).nodeName), D = C && B.ui.hasScroll(E.get(0), "left") ? 0 : K.sizeDiff.height, I = C ? 0 : K.sizeDiff.width;
                var L = {
                    width: (K.size.width - I),
                    height: (K.size.height - D)
                }, H = (parseInt(K.element.css("left"), 10) + (K.position.left - K.originalPosition.left)) || null, J = (parseInt(K.element.css("top"), 10) + (K.position.top - K.originalPosition.top)) || null;
                if (!G.animate) {
                    this.element.css(B.extend(L, {
                        top: J,
                        left: H
                    }))
                }
                if (G.helper && !G.animate) {
                    this._proportionallyResize()
                }
            }
            if (G.preserveCursor) {
                B("body").css("cursor", "auto")
            }
            this._propagate("stop", F);
            if (G.helper) {
                this.helper.remove()
            }
            return false
        },
        _updateCache: function(C) {
            var D = this.options;
            this.offset = this.helper.offset();
            if (C.left) {
                this.position.left = C.left
            }
            if (C.top) {
                this.position.top = C.top
            }
            if (C.height) {
                this.size.height = C.height
            }
            if (C.width) {
                this.size.width = C.width
            }
        },
        _updateRatio: function(F, E) {
            var G = this.options, H = this.position, D = this.size, C = this.axis;
            if (F.height) {
                F.width = (D.height * G.aspectRatio)
            } else {
                if (F.width) {
                    F.height = (D.width / G.aspectRatio)
                }
            }
            if (C == "sw") {
                F.left = H.left + (D.width - F.width);
                F.top = null
            }
            if (C == "nw") {
                F.top = H.top + (D.height - F.height);
                F.left = H.left + (D.width - F.width)
            }
            return F
        },
        _respectSize: function(J, E) {
            var H = this.helper, G = this.options, O = G._aspectRatio || E.shiftKey, N = this.axis, Q = J.width && G.maxWidth && G.maxWidth < J.width, K = J.height && G.maxHeight && G.maxHeight < J.height, F = J.width && G.minWidth && G.minWidth > J.width, P = J.height && G.minHeight && G.minHeight > J.height;
            if (F) {
                J.width = G.minWidth
            }
            if (P) {
                J.height = G.minHeight
            }
            if (Q) {
                J.width = G.maxWidth
            }
            if (K) {
                J.height = G.maxHeight
            }
            var D = this.originalPosition.left + this.originalSize.width, M = this.position.top + this.size.height;
            var I = /sw|nw|w/.test(N), C = /nw|ne|n/.test(N);
            if (F && I) {
                J.left = D - G.minWidth
            }
            if (Q && I) {
                J.left = D - G.maxWidth
            }
            if (P && C) {
                J.top = M - G.minHeight
            }
            if (K && C) {
                J.top = M - G.maxHeight
            }
            var L = !J.width && !J.height;
            if (L && !J.left && J.top) {
                J.top = null
            } else {
                if (L && !J.top && J.left) {
                    J.left = null
                }
            }
            return J
        },
        _proportionallyResize: function() {
            var G = this.options;
            if (!G.proportionallyResize) {
                return
            }
            var E = G.proportionallyResize, D = this.helper || this.element;
            if (!G.borderDif) {
                var C = [E.css("borderTopWidth"), E.css("borderRightWidth"), E.css("borderBottomWidth"), E.css("borderLeftWidth")], F = [E.css("paddingTop"), E.css("paddingRight"), E.css("paddingBottom"), E.css("paddingLeft")];
                G.borderDif = B.map(C, function(H, J) {
                    var I = parseInt(H, 10) || 0, K = parseInt(F[J], 10) || 0;
                    return I + K
                })
            }
            E.css({
                height: (D.height() - G.borderDif[0] - G.borderDif[2]) + "px",
                width: (D.width() - G.borderDif[1] - G.borderDif[3]) + "px"
            })
        },
        _renderProxy: function() {
            var D = this.element, G = this.options;
            this.elementOffset = D.offset();
            if (G.helper) {
                this.helper = this.helper || B('<div style="overflow:hidden;"></div>');
                var C = B.browser.msie && B.browser.version < 7, E = (C ? 1 : 0), F = (C ? 2 : -1);
                this.helper.addClass(G.helper).css({
                    width: D.outerWidth() + F,
                    height: D.outerHeight() + F,
                    position: "absolute",
                    left: this.elementOffset.left - E + "px",
                    top: this.elementOffset.top - E + "px",
                    zIndex: ++G.zIndex
                });
                this.helper.appendTo("body");
                if (G.disableSelection) {
                    this.helper.disableSelection()
                }
            } else {
                this.helper = D
            }
        },
        _change: {
            e: function(E, D, C) {
                return{
                    width: this.originalSize.width + D
                }
            },
            w: function(F, D, C) {
                var H = this.options, E = this.originalSize, G = this.originalPosition;
                return{
                    left: G.left + D,
                    width: E.width - D
                }
            },
            n: function(F, D, C) {
                var H = this.options, E = this.originalSize, G = this.originalPosition;
                return{
                    top: G.top + C,
                    height: E.height - C
                }
            },
            s: function(E, D, C) {
                return{
                    height: this.originalSize.height + C
                }
            },
            se: function(E, D, C) {
                return B.extend(this._change.s.apply(this, arguments), this._change.e.apply(this, [E, D, C]))
            },
            sw: function(E, D, C) {
                return B.extend(this._change.s.apply(this, arguments), this._change.w.apply(this, [E, D, C]))
            },
            ne: function(E, D, C) {
                return B.extend(this._change.n.apply(this, arguments), this._change.e.apply(this, [E, D, C]))
            },
            nw: function(E, D, C) {
                return B.extend(this._change.n.apply(this, arguments), this._change.w.apply(this, [E, D, C]))
            }
        },
        _propagate: function(D, C) {
            B.ui.plugin.call(this, D, [C, this.ui()]);
            if (D != "resize") {
                this.element.triggerHandler(["resize", D].join(""), [C, this.ui()], this.options[D])
            }
        },
        plugins: {},
        ui: function() {
            return{
                originalElement: this.originalElement,
                element: this.element,
                helper: this.helper,
                position: this.position,
                size: this.size,
                options: this.options,
                originalSize: this.originalSize,
                originalPosition: this.originalPosition
            }
        }
    }));
    B.extend(B.ui.resizable, {
        version: "1.6",
        defaults: {
            alsoResize: false,
            animate: false,
            animateDuration: "slow",
            animateEasing: "swing",
            aspectRatio: false,
            autoHide: false,
            cancel: ":input",
            containment: false,
            disableSelection: true,
            distance: 1,
            delay: 0,
            ghost: false,
            grid: false,
            knobHandles: false,
            maxHeight: null,
            maxWidth: null,
            minHeight: 10,
            minWidth: 10,
            preserveCursor: true,
            preventDefault: true,
            proportionallyResize: false,
            transparent: false
        }
    });
    B.ui.plugin.add("resizable", "alsoResize", {
        start: function(D, E) {
            var G = E.options, C = B(this).data("resizable"), F = function(H) {
                B(H).each(function() {
                    B(this).data("resizable-alsoresize", {
                        width: parseInt(B(this).width(), 10),
                        height: parseInt(B(this).height(), 10),
                        left: parseInt(B(this).css("left"), 10),
                        top: parseInt(B(this).css("top"), 10)
                    })
                })
            };

            if (typeof(G.alsoResize) == "object" && !G.alsoResize.parentNode) {
                if (G.alsoResize.length) {
                    G.alsoResize = G.alsoResize[0];
                    F(G.alsoResize)
                } else {
                    B.each(G.alsoResize, function(H, I) {
                        F(H)
                    })
                }
            } else {
                F(G.alsoResize)
            }
        },
        resize: function(E, G) {
            var H = G.options, D = B(this).data("resizable"), F = D.originalSize, J = D.originalPosition;
            var I = {
                height: (D.size.height - F.height) || 0,
                width: (D.size.width - F.width) || 0,
                top: (D.position.top - J.top) || 0,
                left: (D.position.left - J.left) || 0
            }, C = function(K, L) {
                B(K).each(function() {
                    var O = B(this).data("resizable-alsoresize"), N = {}, M = L && L.length ? L : ["width", "height", "top", "left"];
                    B.each(M || ["width", "height", "top", "left"], function(P, R) {
                        var Q = (O[R] || 0) + (I[R] || 0);
                        if (Q && Q >= 0) {
                            N[R] = Q || null
                        }
                    });
                    B(this).css(N)
                })
            };

            if (typeof(H.alsoResize) == "object" && !H.alsoResize.parentNode) {
                B.each(H.alsoResize, function(K, L) {
                    C(K, L)
                })
            } else {
                C(H.alsoResize)
            }
        },
        stop: function(C, D) {
            B(this).removeData("resizable-alsoresize-start")
        }
    });
    B.ui.plugin.add("resizable", "animate", {
        stop: function(G, L) {
            var H = L.options, M = B(this).data("resizable");
            var F = H.proportionallyResize, C = F && (/textarea/i).test(F.get(0).nodeName), D = C && B.ui.hasScroll(F.get(0), "left") ? 0 : M.sizeDiff.height, J = C ? 0 : M.sizeDiff.width;
            var E = {
                width: (M.size.width - J),
                height: (M.size.height - D)
            }, I = (parseInt(M.element.css("left"), 10) + (M.position.left - M.originalPosition.left)) || null, K = (parseInt(M.element.css("top"), 10) + (M.position.top - M.originalPosition.top)) || null;
            M.element.animate(B.extend(E, K && I ? {
                top: K,
                left: I
            } : {}), {
                duration: H.animateDuration,
                easing: H.animateEasing,
                step: function() {
                    var N = {
                        width: parseInt(M.element.css("width"), 10),
                        height: parseInt(M.element.css("height"), 10),
                        top: parseInt(M.element.css("top"), 10),
                        left: parseInt(M.element.css("left"), 10)
                    };

                    if (F) {
                        F.css({
                            width: N.width,
                            height: N.height
                        })
                    }
                    M._updateCache(N);
                    M._propagate("animate", G)
                }
            })
        }
    });
    B.ui.plugin.add("resizable", "containment", {
        start: function(D, N) {
            var H = N.options, P = B(this).data("resizable"), J = P.element;
            var E = H.containment, I = (E instanceof B) ? E.get(0) : (/parent/.test(E)) ? J.parent().get(0) : E;
            if (!I) {
                return
            }
            P.containerElement = B(I);
            if (/document/.test(E) || E == document) {
                P.containerOffset = {
                    left: 0,
                    top: 0
                };

                P.containerPosition = {
                    left: 0,
                    top: 0
                };

                P.parentData = {
                    element: B(document),
                    left: 0,
                    top: 0,
                    width: B(document).width(),
                    height: B(document).height() || document.body.parentNode.scrollHeight
                }
            } else {
                var L = B(I), G = [];
                B(["Top", "Right", "Left", "Bottom"]).each(function(R, Q) {
                    G[R] = A(L.css("padding" + Q))
                });
                P.containerOffset = L.offset();
                P.containerPosition = L.position();
                P.containerSize = {
                    height: (L.innerHeight() - G[3]),
                    width: (L.innerWidth() - G[1])
                };

                var M = P.containerOffset, C = P.containerSize.height, K = P.containerSize.width, F = (B.ui.hasScroll(I, "left") ? I.scrollWidth : K), O = (B.ui.hasScroll(I) ? I.scrollHeight : C);
                P.parentData = {
                    element: I,
                    left: M.left,
                    top: M.top,
                    width: F,
                    height: O
                }
            }
        },
        resize: function(E, N) {
            var G = N.options, Q = B(this).data("resizable"), D = Q.containerSize, M = Q.containerOffset, K = Q.size, L = Q.position, O = G._aspectRatio || E.shiftKey, C = {
                top: 0,
                left: 0
            }, F = Q.containerElement;
            if (F[0] != document && (/static/).test(F.css("position"))) {
                C = M
            }
            if (L.left < (G.helper ? M.left : 0)) {
                Q.size.width = Q.size.width + (G.helper ? (Q.position.left - M.left) : (Q.position.left - C.left));
                if (O) {
                    Q.size.height = Q.size.width / G.aspectRatio
                }
                Q.position.left = G.helper ? M.left : 0
            }
            if (L.top < (G.helper ? M.top : 0)) {
                Q.size.height = Q.size.height + (G.helper ? (Q.position.top - M.top) : Q.position.top);
                if (O) {
                    Q.size.width = Q.size.height * G.aspectRatio
                }
                Q.position.top = G.helper ? M.top : 0
            }
            Q.offset.left = Q.parentData.left + Q.position.left;
            Q.offset.top = Q.parentData.top + Q.position.top;
            var J = Math.abs((G.helper ? Q.offset.left - C.left : (Q.offset.left - C.left)) + Q.sizeDiff.width), P = Math.abs((G.helper ? Q.offset.top - C.top : (Q.offset.top - M.top)) + Q.sizeDiff.height);
            var I = Q.containerElement.get(0) == Q.element.parent().get(0), H = /relative|absolute/.test(Q.containerElement.css("position"));
            if (I && H) {
                J -= Q.parentData.left
            }
            if (J + Q.size.width >= Q.parentData.width) {
                Q.size.width = Q.parentData.width - J;
                if (O) {
                    Q.size.height = Q.size.width / G.aspectRatio
                }
            }
            if (P + Q.size.height >= Q.parentData.height) {
                Q.size.height = Q.parentData.height - P;
                if (O) {
                    Q.size.width = Q.size.height * G.aspectRatio
                }
            }
        },
        stop: function(D, K) {
            var E = K.options, M = B(this).data("resizable"), I = M.position, J = M.containerOffset, C = M.containerPosition, F = M.containerElement;
            var G = B(M.helper), N = G.offset(), L = G.outerWidth() - M.sizeDiff.width, H = G.outerHeight() - M.sizeDiff.height;
            if (E.helper && !E.animate && (/relative/).test(F.css("position"))) {
                B(this).css({
                    left: N.left - C.left - J.left,
                    width: L,
                    height: H
                })
            }
            if (E.helper && !E.animate && (/static/).test(F.css("position"))) {
                B(this).css({
                    left: N.left - C.left - J.left,
                    width: L,
                    height: H
                })
            }
        }
    });
    B.ui.plugin.add("resizable", "ghost", {
        start: function(E, F) {
            var G = F.options, C = B(this).data("resizable"), H = G.proportionallyResize, D = C.size;
            if (!H) {
                C.ghost = C.element.clone()
            } else {
                C.ghost = H.clone()
            }
            C.ghost.css({
                opacity: 0.25,
                display: "block",
                position: "relative",
                height: D.height,
                width: D.width,
                margin: 0,
                left: 0,
                top: 0
            }).addClass("ui-resizable-ghost").addClass(typeof G.ghost == "string" ? G.ghost : "");
            C.ghost.appendTo(C.helper)
        },
        resize: function(D, E) {
            var F = E.options, C = B(this).data("resizable"), G = F.proportionallyResize;
            if (C.ghost) {
                C.ghost.css({
                    position: "relative",
                    height: C.size.height,
                    width: C.size.width
                })
            }
        },
        stop: function(D, E) {
            var F = E.options, C = B(this).data("resizable"), G = F.proportionallyResize;
            if (C.ghost && C.helper) {
                C.helper.get(0).removeChild(C.ghost.get(0))
            }
        }
    });
    B.ui.plugin.add("resizable", "grid", {
        resize: function(C, K) {
            var F = K.options, M = B(this).data("resizable"), I = M.size, G = M.originalSize, H = M.originalPosition, L = M.axis, J = F._aspectRatio || C.shiftKey;
            F.grid = typeof F.grid == "number" ? [F.grid, F.grid] : F.grid;
            var E = Math.round((I.width - G.width) / (F.grid[0] || 1)) * (F.grid[0] || 1), D = Math.round((I.height - G.height) / (F.grid[1] || 1)) * (F.grid[1] || 1);
            if (/^(se|s|e)$/.test(L)) {
                M.size.width = G.width + E;
                M.size.height = G.height + D
            } else {
                if (/^(ne)$/.test(L)) {
                    M.size.width = G.width + E;
                    M.size.height = G.height + D;
                    M.position.top = H.top - D
                } else {
                    if (/^(sw)$/.test(L)) {
                        M.size.width = G.width + E;
                        M.size.height = G.height + D;
                        M.position.left = H.left - E
                    } else {
                        M.size.width = G.width + E;
                        M.size.height = G.height + D;
                        M.position.top = H.top - D;
                        M.position.left = H.left - E
                    }
                }
            }
        }
    });
    var A = function(C) {
        return parseInt(C, 10) || 0
    }
})(jQuery);
(function(A) {
    A.widget("ui.selectable", A.extend({}, A.ui.mouse, {
        _init: function() {
            var B = this;
            this.element.addClass("ui-selectable");
            this.dragged = false;
            var C;
            this.refresh = function() {
                C = A(B.options.filter, B.element[0]);
                C.each(function() {
                    var D = A(this);
                    var E = D.offset();
                    A.data(this, "selectable-item", {
                        element: this,
                        $element: D,
                        left: E.left,
                        top: E.top,
                        right: E.left + D.width(),
                        bottom: E.top + D.height(),
                        startselected: false,
                        selected: D.hasClass("ui-selected"),
                        selecting: D.hasClass("ui-selecting"),
                        unselecting: D.hasClass("ui-unselecting")
                    })
                })
            };

            this.refresh();
            this.selectees = C.addClass("ui-selectee");
            this._mouseInit();
            this.helper = A(document.createElement("div")).css({
                border: "1px dotted black"
            }).addClass("ui-selectable-helper")
        },
        destroy: function() {
            this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");
            this._mouseDestroy()
        },
        _mouseStart: function(E) {
            var C = this;
            this.opos = [E.pageX, E.pageY];
            if (this.options.disabled) {
                return
            }
            var D = this.options;
            this.selectees = A(D.filter, this.element[0]);
            this.element.triggerHandler("selectablestart", [E, {
                    "selectable": this.element[0],
                    "options": D
                }], D.start);
            A("body").append(this.helper);
            this.helper.css({
                "z-index": 100,
                "position": "absolute",
                "left": E.clientX,
                "top": E.clientY,
                "width": 0,
                "height": 0
            });
            if (D.autoRefresh) {
                this.refresh()
            }
            this.selectees.filter(".ui-selected").each(function() {
                var F = A.data(this, "selectable-item");
                F.startselected = true;
                if (!E.metaKey) {
                    F.$element.removeClass("ui-selected");
                    F.selected = false;
                    F.$element.addClass("ui-unselecting");
                    F.unselecting = true;
                    C.element.triggerHandler("selectableunselecting", [E, {
                            selectable: C.element[0],
                            unselecting: F.element,
                            options: D
                        }], D.unselecting)
                }
            });
            var B = false;
            A(E.target).parents().andSelf().each(function() {
                if (A.data(this, "selectable-item")) {
                    B = true
                }
            });
            return this.options.keyboard ? !B : true
        },
        _mouseDrag: function(I) {
            var C = this;
            this.dragged = true;
            if (this.options.disabled) {
                return
            }
            var E = this.options;
            var D = this.opos[0], H = this.opos[1], B = I.pageX, G = I.pageY;
            if (D > B) {
                var F = B;
                B = D;
                D = F
            }
            if (H > G) {
                var F = G;
                G = H;
                H = F
            }
            this.helper.css({
                left: D,
                top: H,
                width: B - D,
                height: G - H
            });
            this.selectees.each(function() {
                var J = A.data(this, "selectable-item");
                if (!J || J.element == C.element[0]) {
                    return
                }
                var K = false;
                if (E.tolerance == "touch") {
                    K = (!(J.left > B || J.right < D || J.top > G || J.bottom < H))
                } else {
                    if (E.tolerance == "fit") {
                        K = (J.left > D && J.right < B && J.top > H && J.bottom < G)
                    }
                }
                if (K) {
                    if (J.selected) {
                        J.$element.removeClass("ui-selected");
                        J.selected = false
                    }
                    if (J.unselecting) {
                        J.$element.removeClass("ui-unselecting");
                        J.unselecting = false
                    }
                    if (!J.selecting) {
                        J.$element.addClass("ui-selecting");
                        J.selecting = true;
                        C.element.triggerHandler("selectableselecting", [I, {
                                selectable: C.element[0],
                                selecting: J.element,
                                options: E
                            }], E.selecting)
                    }
                } else {
                    if (J.selecting) {
                        if (I.metaKey && J.startselected) {
                            J.$element.removeClass("ui-selecting");
                            J.selecting = false;
                            J.$element.addClass("ui-selected");
                            J.selected = true
                        } else {
                            J.$element.removeClass("ui-selecting");
                            J.selecting = false;
                            if (J.startselected) {
                                J.$element.addClass("ui-unselecting");
                                J.unselecting = true
                            }
                            C.element.triggerHandler("selectableunselecting", [I, {
                                    selectable: C.element[0],
                                    unselecting: J.element,
                                    options: E
                                }], E.unselecting)
                        }
                    }
                    if (J.selected) {
                        if (!I.metaKey && !J.startselected) {
                            J.$element.removeClass("ui-selected");
                            J.selected = false;
                            J.$element.addClass("ui-unselecting");
                            J.unselecting = true;
                            C.element.triggerHandler("selectableunselecting", [I, {
                                    selectable: C.element[0],
                                    unselecting: J.element,
                                    options: E
                                }], E.unselecting)
                        }
                    }
                }
            });
            return false
        },
        _mouseStop: function(D) {
            var B = this;
            this.dragged = false;
            var C = this.options;
            A(".ui-unselecting", this.element[0]).each(function() {
                var E = A.data(this, "selectable-item");
                E.$element.removeClass("ui-unselecting");
                E.unselecting = false;
                E.startselected = false;
                B.element.triggerHandler("selectableunselected", [D, {
                        selectable: B.element[0],
                        unselected: E.element,
                        options: C
                    }], C.unselected)
            });
            A(".ui-selecting", this.element[0]).each(function() {
                var E = A.data(this, "selectable-item");
                E.$element.removeClass("ui-selecting").addClass("ui-selected");
                E.selecting = false;
                E.selected = true;
                E.startselected = true;
                B.element.triggerHandler("selectableselected", [D, {
                        selectable: B.element[0],
                        selected: E.element,
                        options: C
                    }], C.selected)
            });
            this.element.triggerHandler("selectablestop", [D, {
                    selectable: B.element[0],
                    options: this.options
                }], this.options.stop);
            this.helper.remove();
            return false
        }
    }));
    A.extend(A.ui.selectable, {
        version: "1.6",
        defaults: {
            appendTo: "body",
            autoRefresh: true,
            cancel: ":input",
            delay: 0,
            distance: 1,
            filter: "*",
            tolerance: "touch"
        }
    })
})(jQuery);
(function(A) {
    A.widget("ui.sortable", A.extend({}, A.ui.mouse, {
        _init: function() {
            var B = this.options;
            this.containerCache = {};

            this.element.addClass("ui-sortable");
            this.refresh();
            this.floating = this.items.length ? (/left|right/).test(this.items[0].item.css("float")) : false;
            this.offset = this.element.offset();
            this._mouseInit()
        },
        destroy: function() {
            this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");
            this._mouseDestroy();
            for (var B = this.items.length - 1; B >= 0; B--) {
                this.items[B].item.removeData("sortable-item")
            }
        },
        _mouseCapture: function(E, F) {
            if (this.reverting) {
                return false
            }
            if (this.options.disabled || this.options.type == "static") {
                return false
            }
            this._refreshItems(E);
            var D = null, C = this, B = A(E.target).parents().each(function() {
                if (A.data(this, "sortable-item") == C) {
                    D = A(this);
                    return false
                }
            });
            if (A.data(E.target, "sortable-item") == C) {
                D = A(E.target)
            }
            if (!D) {
                return false
            }
            if (this.options.handle && !F) {
                var G = false;
                A(this.options.handle, D).find("*").andSelf().each(function() {
                    if (this == E.target) {
                        G = true
                    }
                });
                if (!G) {
                    return false
                }
            }
            this.currentItem = D;
            this._removeCurrentsFromItems();
            return true
        },
        _mouseStart: function(D, E, B) {
            var F = this.options;
            this.currentContainer = this;
            this.refreshPositions();
            this.helper = this._createHelper(D);
            this._cacheHelperProportions();
            this._cacheMargins();
            this.scrollParent = this.helper.scrollParent();
            this.offset = this.currentItem.offset();
            this.offset = {
                top: this.offset.top - this.margins.top,
                left: this.offset.left - this.margins.left
            };

            this.helper.css("position", "absolute");
            this.cssPosition = this.helper.css("position");
            A.extend(this.offset, {
                click: {
                    left: D.pageX - this.offset.left,
                    top: D.pageY - this.offset.top
                },
                parent: this._getParentOffset(),
                relative: this._getRelativeOffset()
            });
            if (F.cursorAt) {
                this._adjustOffsetFromHelper(F.cursorAt)
            }
            this.originalPosition = this._generatePosition(D);
            this.domPosition = {
                prev: this.currentItem.prev()[0],
                parent: this.currentItem.parent()[0]
            };

            if (this.helper[0] != this.currentItem[0]) {
                this.currentItem.hide()
            }
            this._createPlaceholder();
            if (F.containment) {
                this._setContainment()
            }
            this._propagate("start", D);
            if (!this._preserveHelperProportions) {
                this._cacheHelperProportions()
            }
            if (!B) {
                for (var C = this.containers.length - 1; C >= 0; C--) {
                    this.containers[C]._propagate("activate", D, this)
                }
            }
            if (A.ui.ddmanager) {
                A.ui.ddmanager.current = this
            }
            if (A.ui.ddmanager && !F.dropBehaviour) {
                A.ui.ddmanager.prepareOffsets(this, D)
            }
            this.dragging = true;
            this.helper.addClass("ui-sortable-helper");
            this._mouseDrag(D);
            return true
        },
        _mouseDrag: function(E) {
            this.position = this._generatePosition(E);
            this.positionAbs = this._convertPositionTo("absolute");
            if (!this.lastPositionAbs) {
                this.lastPositionAbs = this.positionAbs
            }
            A.ui.plugin.call(this, "sort", [E, this._ui()]);
            this.positionAbs = this._convertPositionTo("absolute");
            if (!this.options.axis || this.options.axis != "y") {
                this.helper[0].style.left = this.position.left + "px"
            }
            if (!this.options.axis || this.options.axis != "x") {
                this.helper[0].style.top = this.position.top + "px"
            }
            for (var C = this.items.length - 1; C >= 0; C--) {
                var D = this.items[C], B = D.item[0], F = this._intersectsWithPointer(D);
                if (!F) {
                    continue
                }
                if (B != this.currentItem[0] && this.placeholder[F == 1 ? "next" : "prev"]()[0] != B && !A.ui.contains(this.placeholder[0], B) && (this.options.type == "semi-dynamic" ? !A.ui.contains(this.element[0], B) : true)) {
                    this.direction = F == 1 ? "down" : "up";
                    if (this.options.tolerance == "pointer" || this._intersectsWithSides(D)) {
                        this.options.sortIndicator.call(this, E, D)
                    } else {
                        break
                    }
                    this._propagate("change", E);
                    break
                }
            }
            this._contactContainers(E);
            if (A.ui.ddmanager) {
                A.ui.ddmanager.drag(this, E)
            }
            this._trigger("sort", E, this._ui());
            this.lastPositionAbs = this.positionAbs;
            return false
        },
        _mouseStop: function(C, D) {
            if (!C) {
                return
            }
            if (A.ui.ddmanager && !this.options.dropBehaviour) {
                A.ui.ddmanager.drop(this, C)
            }
            if (this.options.revert) {
                var B = this;
                var E = B.placeholder.offset();
                B.reverting = true;
                A(this.helper).animate({
                    left: E.left - this.offset.parent.left - B.margins.left + (this.offsetParent[0] == document.body ? 0 : this.offsetParent[0].scrollLeft),
                    top: E.top - this.offset.parent.top - B.margins.top + (this.offsetParent[0] == document.body ? 0 : this.offsetParent[0].scrollTop)
                }, parseInt(this.options.revert, 10) || 500, function() {
                    B._clear(C)
                })
            } else {
                this._clear(C, D)
            }
            return false
        },
        cancel: function() {
            if (this.dragging) {
                this._mouseUp();
                if (this.options.helper == "original") {
                    this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")
                } else {
                    this.currentItem.show()
                }
                for (var B = this.containers.length - 1; B >= 0; B--) {
                    this.containers[B]._propagate("deactivate", null, this);
                    if (this.containers[B].containerCache.over) {
                        this.containers[B]._propagate("out", null, this);
                        this.containers[B].containerCache.over = 0
                    }
                }
            }
            if (this.placeholder[0].parentNode) {
                this.placeholder[0].parentNode.removeChild(this.placeholder[0])
            }
            if (this.options.helper != "original" && this.helper && this.helper[0].parentNode) {
                this.helper.remove()
            }
            A.extend(this, {
                helper: null,
                dragging: false,
                reverting: false,
                _noFinalSort: null
            });
            if (this.domPosition.prev) {
                A(this.domPosition.prev).after(this.currentItem)
            } else {
                A(this.domPosition.parent).prepend(this.currentItem)
            }
            return true
        },
        serialize: function(D) {
            var B = this._getItemsAsjQuery(D && D.connected);
            var C = [];
            D = D || {};

            A(B).each(function() {
                var E = (A(D.item || this).attr(D.attribute || "id") || "").match(D.expression || (/(.+)[-=_](.+)/));
                if (E) {
                    C.push((D.key || E[1] + "[]") + "=" + (D.key && D.expression ? E[1] : E[2]))
                }
            });
            return C.join("&")
        },
        toArray: function(D) {
            var B = this._getItemsAsjQuery(D && D.connected);
            var C = [];
            D = D || {};

            B.each(function() {
                C.push(A(D.item || this).attr(D.attribute || "id") || "")
            });
            return C
        },
        _intersectsWith: function(K) {
            var D = this.positionAbs.left, C = D + this.helperProportions.width, J = this.positionAbs.top, I = J + this.helperProportions.height;
            var E = K.left, B = E + K.width, L = K.top, H = L + K.height;
            var M = this.offset.click.top, G = this.offset.click.left;
            var F = (J + M) > L && (J + M) < H && (D + G) > E && (D + G) < B;
            if (this.options.tolerance == "pointer" || this.options.forcePointerForContainers || (this.options.tolerance != "pointer" && this.helperProportions[this.floating ? "width" : "height"] > K[this.floating ? "width" : "height"])) {
                return F
            } else {
                return(E < D + (this.helperProportions.width / 2) && C - (this.helperProportions.width / 2) < B && L < J + (this.helperProportions.height / 2) && I - (this.helperProportions.height / 2) < H)
            }
        },
        _intersectsWithPointer: function(D) {
            var E = A.ui.isOverAxis(this.positionAbs.top + this.offset.click.top, D.top, D.height), C = A.ui.isOverAxis(this.positionAbs.left + this.offset.click.left, D.left, D.width), G = E && C, B = this._getDragVerticalDirection(), F = this._getDragHorizontalDirection();
            if (!G) {
                return false
            }
            return this.floating ? (((F && F == "right") || B == "down") ? 2 : 1) : (B && (B == "down" ? 2 : 1))
        },
        _intersectsWithSides: function(E) {
            var C = A.ui.isOverAxis(this.positionAbs.top + this.offset.click.top, E.top + (E.height / 2), E.height), D = A.ui.isOverAxis(this.positionAbs.left + this.offset.click.left, E.left + (E.width / 2), E.width), B = this._getDragVerticalDirection(), F = this._getDragHorizontalDirection();
            if (this.floating && F) {
                return((F == "right" && D) || (F == "left" && !D))
            } else {
                return B && ((B == "down" && C) || (B == "up" && !C))
            }
        },
        _getDragVerticalDirection: function() {
            var B = this.positionAbs.top - this.lastPositionAbs.top;
            return B != 0 && (B > 0 ? "down" : "up")
        },
        _getDragHorizontalDirection: function() {
            var B = this.positionAbs.left - this.lastPositionAbs.left;
            return B != 0 && (B > 0 ? "right" : "left")
        },
        refresh: function(B) {
            this._refreshItems(B);
            this.refreshPositions()
        },
        _getItemsAsjQuery: function(G) {
            var C = this;
            var B = [];
            var E = [];
            if (this.options.connectWith && G) {
                for (var F = this.options.connectWith.length - 1; F >= 0; F--) {
                    var I = A(this.options.connectWith[F]);
                    for (var D = I.length - 1; D >= 0; D--) {
                        var H = A.data(I[D], "sortable");
                        if (H && H != this && !H.options.disabled) {
                            E.push([A.isFunction(H.options.items) ? H.options.items.call(H.element) : A(H.options.items, H.element).not(".ui-sortable-helper"), H])
                        }
                    }
                }
            }
            E.push([A.isFunction(this.options.items) ? this.options.items.call(this.element, null, {
                    options: this.options,
                    item: this.currentItem
                }) : A(this.options.items, this.element).not(".ui-sortable-helper"), this]);
            for (var F = E.length - 1; F >= 0; F--) {
                E[F][0].each(function() {
                    B.push(this)
                })
            }
            return A(B)
        },
        _removeCurrentsFromItems: function() {
            var D = this.currentItem.find(":data(sortable-item)");
            for (var C = 0; C < this.items.length; C++) {
                for (var B = 0; B < D.length; B++) {
                    if (D[B] == this.items[C].item[0]) {
                        this.items.splice(C, 1)
                    }
                }
            }
        },
        _refreshItems: function(B) {
            this.items = [];
            this.containers = [this];
            var H = this.items;
            var M = this;
            var F = [[A.isFunction(this.options.items) ? this.options.items.call(this.element[0], B, {
                        item: this.currentItem
                    }) : A(this.options.items, this.element), this]];
            if (this.options.connectWith) {
                for (var E = this.options.connectWith.length - 1; E >= 0; E--) {
                    var J = A(this.options.connectWith[E]);
                    for (var D = J.length - 1; D >= 0; D--) {
                        var G = A.data(J[D], "sortable");
                        if (G && G != this && !G.options.disabled) {
                            F.push([A.isFunction(G.options.items) ? G.options.items.call(G.element[0], B, {
                                    item: this.currentItem
                                }) : A(G.options.items, G.element), G]);
                            this.containers.push(G)
                        }
                    }
                }
            }
            for (var E = F.length - 1; E >= 0; E--) {
                var I = F[E][1];
                var C = F[E][0];
                for (var D = 0, K = C.length; D < K; D++) {
                    var L = A(C[D]);
                    L.data("sortable-item", I);
                    H.push({
                        item: L,
                        instance: I,
                        width: 0,
                        height: 0,
                        left: 0,
                        top: 0
                    })
                }
            }
        },
        refreshPositions: function(B) {
            if (this.offsetParent && this.helper) {
                this.offset.parent = this._getParentOffset()
            }
            for (var D = this.items.length - 1; D >= 0; D--) {
                var E = this.items[D];
                if (E.instance != this.currentContainer && this.currentContainer && E.item[0] != this.currentItem[0]) {
                    continue
                }
                var C = this.options.toleranceElement ? A(this.options.toleranceElement, E.item) : E.item;
                if (!B) {
                    if (this.options.accurateIntersection) {
                        E.width = C.outerWidth();
                        E.height = C.outerHeight()
                    } else {
                        E.width = C[0].offsetWidth;
                        E.height = C[0].offsetHeight
                    }
                }
                var F = C.offset();
                E.left = F.left;
                E.top = F.top
            }
            if (this.options.custom && this.options.custom.refreshContainers) {
                this.options.custom.refreshContainers.call(this)
            } else {
                for (var D = this.containers.length - 1; D >= 0; D--) {
                    var F = this.containers[D].element.offset();
                    this.containers[D].containerCache.left = F.left;
                    this.containers[D].containerCache.top = F.top;
                    this.containers[D].containerCache.width = this.containers[D].element.outerWidth();
                    this.containers[D].containerCache.height = this.containers[D].element.outerHeight()
                }
            }
        },
        _createPlaceholder: function(D) {
            var B = D || this, E = B.options;
            if (!E.placeholder || E.placeholder.constructor == String) {
                var C = E.placeholder;
                E.placeholder = {
                    element: function() {
                        var F = A(document.createElement(B.currentItem[0].nodeName)).addClass(C || B.currentItem[0].className + " ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];
                        if (!C) {
                            F.style.visibility = "hidden";
                            document.body.appendChild(F);
                            F.innerHTML = B.currentItem[0].innerHTML.replace(/name\=\"[^\"\']+\"/g, "").replace(/jQuery[0-9]+\=\"[^\"\']+\"/g, "");
                            document.body.removeChild(F)
                        }
                        return F
                    },
                    update: function(F, G) {
                        if (C && !E.forcePlaceholderSize) {
                            return
                        }
                        if (!G.height()) {
                            G.height(B.currentItem.innerHeight() - parseInt(B.currentItem.css("paddingTop") || 0, 10) - parseInt(B.currentItem.css("paddingBottom") || 0, 10))
                        }
                        if (!G.width()) {
                            G.width(B.currentItem.innerWidth() - parseInt(B.currentItem.css("paddingLeft") || 0, 10) - parseInt(B.currentItem.css("paddingRight") || 0, 10))
                        }
                    }
                }
            }
            B.placeholder = A(E.placeholder.element.call(B.element, B.currentItem));
            B.currentItem.after(B.placeholder);
            E.placeholder.update(B, B.placeholder)
        },
        _contactContainers: function(D) {
            for (var C = this.containers.length - 1; C >= 0; C--) {
                if (this._intersectsWith(this.containers[C].containerCache)) {
                    if (!this.containers[C].containerCache.over) {
                        if (this.currentContainer != this.containers[C]) {
                            var H = 10000;
                            var G = null;
                            var E = this.positionAbs[this.containers[C].floating ? "left" : "top"];
                            for (var B = this.items.length - 1; B >= 0; B--) {
                                if (!A.ui.contains(this.containers[C].element[0], this.items[B].item[0])) {
                                    continue
                                }
                                var F = this.items[B][this.containers[C].floating ? "left" : "top"];
                                if (Math.abs(F - E) < H) {
                                    H = Math.abs(F - E);
                                    G = this.items[B]
                                }
                            }
                            if (!G && !this.options.dropOnEmpty) {
                                continue
                            }
                            this.currentContainer = this.containers[C];
                            G ? this.options.sortIndicator.call(this, D, G, null, true) : this.options.sortIndicator.call(this, D, null, this.containers[C].element, true);
                            this._propagate("change", D);
                            this.containers[C]._propagate("change", D, this);
                            this.options.placeholder.update(this.currentContainer, this.placeholder)
                        }
                        this.containers[C]._propagate("over", D, this);
                        this.containers[C].containerCache.over = 1
                    }
                } else {
                    if (this.containers[C].containerCache.over) {
                        this.containers[C]._propagate("out", D, this);
                        this.containers[C].containerCache.over = 0
                    }
                }
            }
        },
        _createHelper: function(C) {
            var D = this.options;
            var B = A.isFunction(D.helper) ? A(D.helper.apply(this.element[0], [C, this.currentItem])) : (D.helper == "clone" ? this.currentItem.clone() : this.currentItem);
            if (!B.parents("body").length) {
                A(D.appendTo != "parent" ? D.appendTo : this.currentItem[0].parentNode)[0].appendChild(B[0])
            }
            if (B[0] == this.currentItem[0]) {
                this._storedCSS = {
                    width: this.currentItem[0].style.width,
                    height: this.currentItem[0].style.height,
                    position: this.currentItem.css("position"),
                    top: this.currentItem.css("top"),
                    left: this.currentItem.css("left")
                }
            }
            if (B[0].style.width == "" || D.forceHelperSize) {
                B.width(this.currentItem.width())
            }
            if (B[0].style.height == "" || D.forceHelperSize) {
                B.height(this.currentItem.height())
            }
            return B
        },
        _adjustOffsetFromHelper: function(B) {
            if (B.left != undefined) {
                this.offset.click.left = B.left + this.margins.left
            }
            if (B.right != undefined) {
                this.offset.click.left = this.helperProportions.width - B.right + this.margins.left
            }
            if (B.top != undefined) {
                this.offset.click.top = B.top + this.margins.top
            }
            if (B.bottom != undefined) {
                this.offset.click.top = this.helperProportions.height - B.bottom + this.margins.top
            }
        },
        _getParentOffset: function() {
            this.offsetParent = this.helper.offsetParent();
            var B = this.offsetParent.offset();
            if ((this.offsetParent[0] == document.body && A.browser.mozilla) || (this.offsetParent[0].tagName && this.offsetParent[0].tagName.toLowerCase() == "html" && A.browser.msie)) {
                B = {
                    top: 0,
                    left: 0
                }
            }
            return{
                top: B.top + (parseInt(this.offsetParent.css("borderTopWidth"), 10) || 0),
                left: B.left + (parseInt(this.offsetParent.css("borderLeftWidth"), 10) || 0)
            }
        },
        _getRelativeOffset: function() {
            if (this.cssPosition == "relative") {
                var B = this.currentItem.position();
                return{
                    top: B.top - (parseInt(this.helper.css("top"), 10) || 0) + this.scrollParent.scrollTop(),
                    left: B.left - (parseInt(this.helper.css("left"), 10) || 0) + this.scrollParent.scrollLeft()
                }
            } else {
                return{
                    top: 0,
                    left: 0
                }
            }
        },
        _cacheMargins: function() {
            this.margins = {
                left: (parseInt(this.currentItem.css("marginLeft"), 10) || 0),
                top: (parseInt(this.currentItem.css("marginTop"), 10) || 0)
            }
        },
        _cacheHelperProportions: function() {
            this.helperProportions = {
                width: this.helper.outerWidth(),
                height: this.helper.outerHeight()
            }
        },
        _setContainment: function() {
            var E = this.options;
            if (E.containment == "parent") {
                E.containment = this.helper[0].parentNode
            }
            if (E.containment == "document" || E.containment == "window") {
                this.containment = [0 - this.offset.relative.left - this.offset.parent.left, 0 - this.offset.relative.top - this.offset.parent.top, A(E.containment == "document" ? document : window).width() - this.offset.relative.left - this.offset.parent.left - this.margins.left - (parseInt(this.currentItem.css("marginRight"), 10) || 0), (A(E.containment == "document" ? document : window).height() || document.body.parentNode.scrollHeight) - this.offset.relative.top - this.offset.parent.top - this.margins.top - (parseInt(this.currentItem.css("marginBottom"), 10) || 0)]
            }
            if (!(/^(document|window|parent)$/).test(E.containment)) {
                var C = A(E.containment)[0];
                var D = A(E.containment).offset();
                var B = (A(C).css("overflow") != "hidden");
                this.containment = [D.left + (parseInt(A(C).css("borderLeftWidth"), 10) || 0) - this.offset.relative.left - this.offset.parent.left - this.margins.left, D.top + (parseInt(A(C).css("borderTopWidth"), 10) || 0) - this.offset.relative.top - this.offset.parent.top - this.margins.top, D.left + (B ? Math.max(C.scrollWidth, C.offsetWidth) : C.offsetWidth) - (parseInt(A(C).css("borderLeftWidth"), 10) || 0) - this.offset.relative.left - this.offset.parent.left - this.margins.left, D.top + (B ? Math.max(C.scrollHeight, C.offsetHeight) : C.offsetHeight) - (parseInt(A(C).css("borderTopWidth"), 10) || 0) - this.offset.relative.top - this.offset.parent.top - this.margins.top]
            }
        },
        _convertPositionTo: function(D, F) {
            if (!F) {
                F = this.position
            }
            var C = D == "absolute" ? 1 : -1;
            var B = this[(this.cssPosition == "absolute" ? "offset" : "scroll") + "Parent"], E = (/(html|body)/i).test(B[0].tagName);
            return{
                top: (F.top + this.offset.relative.top * C + this.offset.parent.top * C + (this.cssPosition == "fixed" ? -this.scrollParent.scrollTop() : (E ? 0 : B.scrollTop())) * C + this.margins.top * C),
                left: (F.left + this.offset.relative.left * C + this.offset.parent.left * C + (this.cssPosition == "fixed" ? -this.scrollParent.scrollLeft() : (E ? 0 : B.scrollLeft())) * C + this.margins.left * C)
            }
        },
        _generatePosition: function(D) {
            var G = this.options, C = this[(this.cssPosition == "absolute" ? "offset" : "scroll") + "Parent"], H = (/(html|body)/i).test(C[0].tagName);
            var B = {
                top: (D.pageY - this.offset.click.top - this.offset.relative.top - this.offset.parent.top + (this.cssPosition == "fixed" ? -this.scrollParent.scrollTop() : (H ? 0 : C.scrollTop()))),
                left: (D.pageX - this.offset.click.left - this.offset.relative.left - this.offset.parent.left + (this.cssPosition == "fixed" ? -this.scrollParent.scrollLeft() : (H ? 0 : C.scrollLeft())))
            };

            if (!this.originalPosition) {
                return B
            }
            if (this.containment) {
                if (B.left < this.containment[0]) {
                    B.left = this.containment[0]
                }
                if (B.top < this.containment[1]) {
                    B.top = this.containment[1]
                }
                if (B.left + this.helperProportions.width > this.containment[2]) {
                    B.left = this.containment[2] - this.helperProportions.width
                }
                if (B.top + this.helperProportions.height > this.containment[3]) {
                    B.top = this.containment[3] - this.helperProportions.height
                }
            }
            if (G.grid) {
                var F = this.originalPosition.top + Math.round((B.top - this.originalPosition.top) / G.grid[1]) * G.grid[1];
                B.top = this.containment ? (!(F < this.containment[1] || F > this.containment[3]) ? F : (!(F < this.containment[1]) ? F - G.grid[1] : F + G.grid[1])) : F;
                var E = this.originalPosition.left + Math.round((B.left - this.originalPosition.left) / G.grid[0]) * G.grid[0];
                B.left = this.containment ? (!(E < this.containment[0] || E > this.containment[2]) ? E : (!(E < this.containment[0]) ? E - G.grid[0] : E + G.grid[0])) : E
            }
            return B
        },
        _rearrange: function(G, F, C, E) {
            C ? C[0].appendChild(this.placeholder[0]) : F.item[0].parentNode.insertBefore(this.placeholder[0], (this.direction == "down" ? F.item[0] : F.item[0].nextSibling));
            this.counter = this.counter ? ++this.counter : 1;
            var D = this, B = this.counter;
            window.setTimeout(function() {
                if (B == D.counter) {
                    D.refreshPositions(!E)
                }
            }, 0)
        },
        _clear: function(C, D) {
            this.reverting = false;
            if (!this._noFinalSort) {
                this.placeholder.before(this.currentItem)
            }
            this._noFinalSort = null;
            if (this.helper[0] == this.currentItem[0]) {
                for (var B in this._storedCSS) {
                    if (this._storedCSS[B] == "auto" || this._storedCSS[B] == "static") {
                        this._storedCSS[B] = ""
                    }
                }
                this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")
            } else {
                this.currentItem.show()
            }
            if (this.domPosition.prev != this.currentItem.prev().not(".ui-sortable-helper")[0] || this.domPosition.parent != this.currentItem.parent()[0]) {
                this._propagate("update", C, null, D)
            }
            if (!A.ui.contains(this.element[0], this.currentItem[0])) {
                this._propagate("remove", C, null, D);
                for (var B = this.containers.length - 1; B >= 0; B--) {
                    if (A.ui.contains(this.containers[B].element[0], this.currentItem[0])) {
                        this.containers[B]._propagate("update", C, this, D);
                        this.containers[B]._propagate("receive", C, this, D)
                    }
                }
            }
            for (var B = this.containers.length - 1; B >= 0; B--) {
                this.containers[B]._propagate("deactivate", C, this, D);
                if (this.containers[B].containerCache.over) {
                    this.containers[B]._propagate("out", C, this);
                    this.containers[B].containerCache.over = 0
                }
            }
            this.dragging = false;
            if (this.cancelHelperRemoval) {
                this._propagate("beforeStop", C, null, D);
                this._propagate("stop", C, null, D);
                return false
            }
            this._propagate("beforeStop", C, null, D);
            this.placeholder[0].parentNode.removeChild(this.placeholder[0]);
            if (this.options.helper != "original") {
                this.helper.remove()
            }
            this.helper = null;
            this._propagate("stop", C, null, D);
            return true
        },
        _propagate: function(F, B, C, D) {
            A.ui.plugin.call(this, F, [B, this._ui(C)]);
            var E = !D ? this.element.triggerHandler(F == "sort" ? F : "sort" + F, [B, this._ui(C)], this.options[F]) : true;
            if (E === false) {
                this.cancel()
            }
        },
        plugins: {},
        _ui: function(C) {
            var B = C || this;
            return{
                helper: B.helper,
                placeholder: B.placeholder || A([]),
                position: B.position,
                absolutePosition: B.positionAbs,
                item: B.currentItem,
                sender: C ? C.element : null
            }
        }
    }));
    A.extend(A.ui.sortable, {
        getter: "serialize toArray",
        version: "1.6",
        defaults: {
            accurateIntersection: true,
            appendTo: "parent",
            cancel: ":input",
            delay: 0,
            distance: 1,
            dropOnEmpty: true,
            forcePlaceholderSize: false,
            forceHelperSize: false,
            helper: "original",
            items: "> *",
            scope: "default",
            scroll: true,
            scrollSensitivity: 20,
            scrollSpeed: 20,
            sortIndicator: A.ui.sortable.prototype._rearrange,
            tolerance: "default",
            zIndex: 1000
        }
    });
    A.ui.plugin.add("sortable", "cursor", {
        start: function(D, E) {
            var C = A("body"), B = A(this).data("sortable");
            if (C.css("cursor")) {
                B.options._cursor = C.css("cursor")
            }
            C.css("cursor", B.options.cursor)
        },
        beforeStop: function(C, D) {
            var B = A(this).data("sortable");
            if (B.options._cursor) {
                A("body").css("cursor", B.options._cursor)
            }
        }
    });
    A.ui.plugin.add("sortable", "opacity", {
        start: function(D, E) {
            var C = E.helper, B = A(this).data("sortable");
            if (C.css("opacity")) {
                B.options._opacity = C.css("opacity")
            }
            C.css("opacity", B.options.opacity)
        },
        beforeStop: function(C, D) {
            var B = A(this).data("sortable");
            if (B.options._opacity) {
                A(D.helper).css("opacity", B.options._opacity)
            }
        }
    });
    A.ui.plugin.add("sortable", "scroll", {
        start: function(C, D) {
            var B = A(this).data("sortable"), E = B.options;
            if (B.scrollParent[0] != document && B.scrollParent[0].tagName != "HTML") {
                B.overflowOffset = B.scrollParent.offset()
            }
        },
        sort: function(D, E) {
            var C = A(this).data("sortable"), F = C.options, B = false;
            if (C.scrollParent[0] != document && C.scrollParent[0].tagName != "HTML") {
                if ((C.overflowOffset.top + C.scrollParent[0].offsetHeight) - D.pageY < F.scrollSensitivity) {
                    C.scrollParent[0].scrollTop = B = C.scrollParent[0].scrollTop + F.scrollSpeed
                } else {
                    if (D.pageY - C.overflowOffset.top < F.scrollSensitivity) {
                        C.scrollParent[0].scrollTop = B = C.scrollParent[0].scrollTop - F.scrollSpeed
                    }
                }
                if ((C.overflowOffset.left + C.scrollParent[0].offsetWidth) - D.pageX < F.scrollSensitivity) {
                    C.scrollParent[0].scrollLeft = B = C.scrollParent[0].scrollLeft + F.scrollSpeed
                } else {
                    if (D.pageX - C.overflowOffset.left < F.scrollSensitivity) {
                        C.scrollParent[0].scrollLeft = B = C.scrollParent[0].scrollLeft - F.scrollSpeed
                    }
                }
            } else {
                if (D.pageY - A(document).scrollTop() < F.scrollSensitivity) {
                    B = A(document).scrollTop(A(document).scrollTop() - F.scrollSpeed)
                } else {
                    if (A(window).height() - (D.pageY - A(document).scrollTop()) < F.scrollSensitivity) {
                        B = A(document).scrollTop(A(document).scrollTop() + F.scrollSpeed)
                    }
                }
                if (D.pageX - A(document).scrollLeft() < F.scrollSensitivity) {
                    B = A(document).scrollLeft(A(document).scrollLeft() - F.scrollSpeed)
                } else {
                    if (A(window).width() - (D.pageX - A(document).scrollLeft()) < F.scrollSensitivity) {
                        B = A(document).scrollLeft(A(document).scrollLeft() + F.scrollSpeed)
                    }
                }
            }
            if (B !== false && A.ui.ddmanager && !F.dropBehaviour) {
                A.ui.ddmanager.prepareOffsets(C, D)
            }
            if (B !== false && C.cssPosition == "absolute" && C.scrollParent[0] != document && A.ui.contains(C.scrollParent[0], C.offsetParent[0])) {
                C.offset.parent = C._getParentOffset()
            }
            if (B !== false && C.cssPosition == "relative" && !(C.scrollParent[0] != document && C.scrollParent[0] != C.offsetParent[0])) {
                C.offset.relative = C._getRelativeOffset()
            }
        }
    });
    A.ui.plugin.add("sortable", "zIndex", {
        start: function(D, E) {
            var C = E.helper, B = A(this).data("sortable");
            if (C.css("zIndex")) {
                B.options._zIndex = C.css("zIndex")
            }
            C.css("zIndex", B.options.zIndex)
        },
        beforeStop: function(C, D) {
            var B = A(this).data("sortable");
            if (B.options._zIndex) {
                A(D.helper).css("zIndex", B.options._zIndex == "auto" ? "" : B.options._zIndex)
            }
        }
    })
})(jQuery);
(function(E) {
    E.widget("ui.accordion", {
        _init: function() {
            var H = this.options;
            if (H.navigation) {
                var K = this.element.find("a").filter(H.navigationFilter);
                if (K.length) {
                    if (K.filter(H.header).length) {
                        H.active = K
                    } else {
                        H.active = K.parent().parent().prev();
                        K.addClass("current")
                    }
                }
            }
            H.headers = this.element.find(H.header);
            H.active = C(H.headers, H.active);
            if (E.browser.msie) {
                this.element.find("a").css("zoom", "1")
            }
            if (!this.element.hasClass("ui-accordion")) {
                this.element.addClass("ui-accordion");
                E('<span class="ui-accordion-left"></span>').insertBefore(H.headers);
                E('<span class="ui-accordion-right"></span>').appendTo(H.headers);
                H.headers.addClass("ui-accordion-header")
            }
            var J;
            if (H.fillSpace) {
                J = this.element.parent().height();
                H.headers.each(function() {
                    J -= E(this).outerHeight()
                });
                var I = 0;
                H.headers.next().each(function() {
                    I = Math.max(I, E(this).innerHeight() - E(this).height())
                }).height(J - I)
            } else {
                if (H.autoHeight) {
                    J = 0;
                    H.headers.next().each(function() {
                        J = Math.max(J, E(this).outerHeight())
                    }).height(J)
                }
            }
            this.element.attr("role", "tablist");
            var G = this;
            H.headers.attr("role", "tab").bind("keydown", function(L) {
                return G._keydown(L)
            }).next().attr("role", "tabpanel");
            H.headers.not(H.active || "").attr("aria-expanded", "false").attr("tabIndex", "-1").next().hide();
            if (!H.active.length) {
                H.headers.eq(0).attr("tabIndex", "0")
            } else {
                H.active.attr("aria-expanded", "true").attr("tabIndex", "0").parent().andSelf().addClass(H.selectedClass)
            }
            if (!E.browser.safari) {
                H.headers.find("a").attr("tabIndex", "-1")
            }
            if (H.event) {
                this.element.bind((H.event) + ".accordion", F)
            }
        },
        destroy: function() {
            this.options.headers.parent().andSelf().removeClass(this.options.selectedClass);
            this.options.headers.prev(".ui-accordion-left").remove();
            this.options.headers.children(".ui-accordion-right").remove();
            this.options.headers.next().css("display", "");
            if (this.options.fillSpace || this.options.autoHeight) {
                this.options.headers.next().css("height", "")
            }
            E.removeData(this.element[0], "accordion");
            this.element.removeClass("ui-accordion").unbind(".accordion")
        },
        _keydown: function(J) {
            if (this.options.disabled || J.altKey || J.ctrlKey) {
                return
            }
            var K = E.ui.keyCode;
            var I = this.options.headers.length;
            var G = this.options.headers.index(J.target);
            var H = false;
            switch (J.keyCode) {
                case K.RIGHT:
                case K.DOWN:
                    H = this.options.headers[(G + 1) % I];
                    break;
                case K.LEFT:
                case K.UP:
                    H = this.options.headers[(G - 1 + I) % I];
                    break;
                case K.SPACE:
                case K.ENTER:
                    return F.call(this.element[0], {
                        target: J.target
                    })
            }
            if (H) {
                E(J.target).attr("tabIndex", "-1");
                E(H).attr("tabIndex", "0");
                H.focus();
                return false
            }
            return true
        },
        activate: function(G) {
            F.call(this.element[0], {
                target: C(this.options.headers, G)[0]
            })
        }
    });
    function B(H, G) {
        return function() {
            return H.apply(G, arguments)
        }
    }
    function D(I) {
        if (!E.data(this, "accordion")) {
            return
        }
        var G = E.data(this, "accordion");
        var H = G.options;
        H.running = I ? 0 : --H.running;
        if (H.running) {
            return
        }
        if (H.clearStyle) {
            H.toShow.add(H.toHide).css({
                height: "",
                overflow: ""
            })
        }
        G._trigger("change", null, H.data)
    }
    function A(G, N, K, L, O) {
        var Q = E.data(this, "accordion").options;
        Q.toShow = G;
        Q.toHide = N;
        Q.data = K;
        var H = B(D, this);
        E.data(this, "accordion")._trigger("changestart", null, Q.data);
        Q.running = N.size() === 0 ? G.size() : N.size();
        if (Q.animated) {
            var J = {};

            if (!Q.alwaysOpen && L) {
                J = {
                    toShow: E([]),
                    toHide: N,
                    complete: H,
                    down: O,
                    autoHeight: Q.autoHeight
                }
            } else {
                J = {
                    toShow: G,
                    toHide: N,
                    complete: H,
                    down: O,
                    autoHeight: Q.autoHeight
                }
            }
            if (!Q.proxied) {
                Q.proxied = Q.animated
            }
            if (!Q.proxiedDuration) {
                Q.proxiedDuration = Q.duration
            }
            Q.animated = E.isFunction(Q.proxied) ? Q.proxied(J) : Q.proxied;
            Q.duration = E.isFunction(Q.proxiedDuration) ? Q.proxiedDuration(J) : Q.proxiedDuration;
            var P = E.ui.accordion.animations, I = Q.duration, M = Q.animated;
            if (!P[M]) {
                P[M] = function(R) {
                    this.slide(R, {
                        easing: M,
                        duration: I || 700
                    })
                }
            }
            P[M](J)
        } else {
            if (!Q.alwaysOpen && L) {
                G.toggle()
            } else {
                N.hide();
                G.show()
            }
            H(true)
        }
        N.prev().attr("aria-expanded", "false").attr("tabIndex", "-1");
        G.prev().attr("aria-expanded", "true").attr("tabIndex", "0").focus()
    }
    function F(L) {
        var J = E.data(this, "accordion").options;
        if (J.disabled) {
            return false
        }
        if (!L.target && !J.alwaysOpen) {
            J.active.parent().andSelf().toggleClass(J.selectedClass);
            var I = J.active.next(), M = {
                options: J,
                newHeader: E([]),
                oldHeader: J.active,
                newContent: E([]),
                oldContent: I
            }, G = (J.active = E([]));
            A.call(this, G, I, M);
            return false
        }
        var K = E(L.target);
        K = E(K.parents(J.header)[0] || K);
        var H = K[0] == J.active[0];
        if (J.running || (J.alwaysOpen && H)) {
            return false
        }
        if (!K.is(J.header)) {
            return
        }
        J.active.parent().andSelf().toggleClass(J.selectedClass);
        if (!H) {
            K.parent().andSelf().addClass(J.selectedClass)
        }
        var G = K.next(), I = J.active.next(), M = {
            options: J,
            newHeader: H && !J.alwaysOpen ? E([]) : K,
            oldHeader: J.active,
            newContent: H && !J.alwaysOpen ? E([]) : G,
            oldContent: I
        }, N = J.headers.index(J.active[0]) > J.headers.index(K[0]);
        J.active = H ? E([]) : K;
        A.call(this, G, I, M, H, N);
        return false
    }
    function C(H, G) {
        return G ? typeof G == "number" ? H.filter(":eq(" + G + ")") : H.not(H.not(G)) : G === false ? E([]) : H.filter(":eq(0)")
    }
    E.extend(E.ui.accordion, {
        version: "1.6",
        defaults: {
            autoHeight: true,
            alwaysOpen: true,
            animated: "slide",
            event: "click",
            header: "a",
            navigationFilter: function() {
                return this.href.toLowerCase() == location.href.toLowerCase()
            },
            running: 0,
            selectedClass: "selected"
        },
        animations: {
            slide: function(G, J) {
                G = E.extend({
                    easing: "swing",
                    duration: 300
                }, G, J);
                if (!G.toHide.size()) {
                    G.toShow.animate({
                        height: "show"
                    }, G);
                    return
                }
                var I = G.toHide.height(), L = G.toShow.height(), N = L / I, K = G.toShow.outerHeight() - G.toShow.height(), H = G.toShow.css("marginBottom"), M = G.toShow.css("overflow");
                tmargin = G.toShow.css("marginTop");
                G.toShow.css({
                    height: 0,
                    overflow: "hidden",
                    marginTop: 0,
                    marginBottom: -K
                }).show();
                G.toHide.filter(":hidden").each(G.complete).end().filter(":visible").animate({
                    height: "hide"
                }, {
                    step: function(O) {
                        var P = (I - O) * N;
                        if (E.browser.msie || E.browser.opera) {
                            P = Math.ceil(P)
                        }
                        G.toShow.height(P)
                    },
                    duration: G.duration,
                    easing: G.easing,
                    complete: function() {
                        if (!G.autoHeight) {
                            G.toShow.css("height", "auto")
                        }
                        G.toShow.css({
                            marginTop: tmargin,
                            marginBottom: H,
                            overflow: M
                        });
                        G.complete()
                    }
                })
            },
            bounceslide: function(G) {
                this.slide(G, {
                    easing: G.down ? "easeOutBounce" : "swing",
                    duration: G.down ? 1000 : 200
                })
            },
            easeslide: function(G) {
                this.slide(G, {
                    easing: "easeinout",
                    duration: 700
                })
            }
        }
    })
})(jQuery);
(function(B) {
    var A = {
        dragStart: "start.draggable",
        drag: "drag.draggable",
        dragStop: "stop.draggable",
        maxHeight: "maxHeight.resizable",
        minHeight: "minHeight.resizable",
        maxWidth: "maxWidth.resizable",
        minWidth: "minWidth.resizable",
        resizeStart: "start.resizable",
        resize: "drag.resizable",
        resizeStop: "stop.resizable"
    };

    B.widget("ui.dialog", {
        _init: function() {
            this.originalTitle = this.element.attr("title");
            this.options.title = this.options.title || this.originalTitle;
            var M = this, N = this.options, F = this.element.removeAttr("title").addClass("ui-dialog-content").wrap("<div></div>").wrap("<div></div>"), I = (this.uiDialogContainer = F.parent()).addClass("ui-dialog-container").css({
                position: "relative",
                width: "100%",
                height: "100%"
            }), E = (this.uiDialogTitlebar = B("<div></div>")).addClass("ui-dialog-titlebar").mousedown(function() {
                M.moveToTop()
            }).prependTo(I), J = B('<a href="#"/>').addClass("ui-dialog-titlebar-close").attr("role", "button").appendTo(E), G = (this.uiDialogTitlebarCloseText = B("<span/>")).text(N.closeText).appendTo(J), L = N.title || "&nbsp;", D = B.ui.dialog.getTitleId(this.element), C = B("<span/>").addClass("ui-dialog-title").attr("id", D).html(L).prependTo(E), K = (this.uiDialog = I.parent()).appendTo(document.body).hide().addClass("ui-dialog").addClass(N.dialogClass).css({
                position: "absolute",
                width: N.width,
                height: N.height,
                overflow: "hidden",
                zIndex: N.zIndex
            }).attr("tabIndex", -1).css("outline", 0).keydown(function(O) {
                (N.closeOnEscape && O.keyCode && O.keyCode == B.ui.keyCode.ESCAPE && M.close())
            }).attr({
                role: "dialog",
                "aria-labelledby": D
            }).mouseup(function() {
                M.moveToTop()
            }), H = (this.uiDialogButtonPane = B("<div></div>")).addClass("ui-dialog-buttonpane").css({
                position: "absolute",
                bottom: 0
            }).appendTo(K), J = B(".ui-dialog-titlebar-close", E).hover(function() {
                B(this).addClass("ui-dialog-titlebar-close-hover")
            }, function() {
                B(this).removeClass("ui-dialog-titlebar-close-hover")
            }).mousedown(function(O) {
                O.stopPropagation()
            }).click(function() {
                M.close();
                return false
            });
            E.find("*").add(E).disableSelection();
            (N.draggable && B.fn.draggable && this._makeDraggable());
            (N.resizable && B.fn.resizable && this._makeResizable());
            this._createButtons(N.buttons);
            this._isOpen = false;
            (N.bgiframe && B.fn.bgiframe && K.bgiframe());
            (N.autoOpen && this.open())
        },
        destroy: function() {
            (this.overlay && this.overlay.destroy());
            this.uiDialog.hide();
            this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content").hide().appendTo("body");
            this.uiDialog.remove();
            (this.originalTitle && this.element.attr("title", this.originalTitle))
        },
        close: function() {
            if (false === this._trigger("beforeclose", null, {
                options: this.options
            })) {
                return
            }
            (this.overlay && this.overlay.destroy());
            this.uiDialog.hide(this.options.hide).unbind("keypress.ui-dialog");
            this._trigger("close", null, {
                options: this.options
            });
            B.ui.dialog.overlay.resize();
            this._isOpen = false
        },
        isOpen: function() {
            return this._isOpen
        },
        moveToTop: function(F) {
            if ((this.options.modal && !F) || (!this.options.stack && !this.options.modal)) {
                return this._trigger("focus", null, {
                    options: this.options
                })
            }
            var E = this.options.zIndex, D = this.options;
            B(".ui-dialog:visible").each(function() {
                E = Math.max(E, parseInt(B(this).css("z-index"), 10) || D.zIndex)
            });
            (this.overlay && this.overlay.$el.css("z-index", ++E));
            var C = {
                scrollTop: this.element.attr("scrollTop"),
                scrollLeft: this.element.attr("scrollLeft")
            };

            this.uiDialog.css("z-index", ++E);
            this.element.attr(C);
            this._trigger("focus", null, {
                options: this.options
            })
        },
        open: function() {
            if (this._isOpen) {
                return
            }
            this.overlay = this.options.modal ? new B.ui.dialog.overlay(this) : null;
            (this.uiDialog.next().length && this.uiDialog.appendTo("body"));
            this._position(this.options.position);
            this.uiDialog.show(this.options.show);
            (this.options.autoResize && this._size());
            this.moveToTop(true);
            (this.options.modal && this.uiDialog.bind("keypress.ui-dialog", function(E) {
                if (E.keyCode != B.ui.keyCode.TAB) {
                    return
                }
                var D = B(":tabbable", this), F = D.filter(":first")[0], C = D.filter(":last")[0];
                if (E.target == C && !E.shiftKey) {
                    setTimeout(function() {
                        F.focus()
                    }, 1)
                } else {
                    if (E.target == F && E.shiftKey) {
                        setTimeout(function() {
                            C.focus()
                        }, 1)
                    }
                }
            }));
            this.uiDialog.find(":tabbable:first").focus();
            this._trigger("open", null, {
                options: this.options
            });
            this._isOpen = true
        },
        _createButtons: function(F) {
            var E = this, C = false, D = this.uiDialogButtonPane;
            D.empty().hide();
            B.each(F, function() {
                return!(C = true)
            });
            if (C) {
                D.show();
                B.each(F, function(G, H) {
                    B('<button type="button"></button>').text(G).click(function() {
                        H.apply(E.element[0], arguments)
                    }).appendTo(D)
                })
            }
        },
        _makeDraggable: function() {
            var C = this, D = this.options;
            this.uiDialog.draggable({
                cancel: ".ui-dialog-content",
                helper: D.dragHelper,
                handle: ".ui-dialog-titlebar",
                start: function() {
                    C.moveToTop();
                    (D.dragStart && D.dragStart.apply(C.element[0], arguments))
                },
                drag: function() {
                    (D.drag && D.drag.apply(C.element[0], arguments))
                },
                stop: function() {
                    (D.dragStop && D.dragStop.apply(C.element[0], arguments));
                    B.ui.dialog.overlay.resize()
                }
            })
        },
        _makeResizable: function(F) {
            F = (F === undefined ? this.options.resizable : F);
            var C = this, E = this.options, D = typeof F == "string" ? F : "n,e,s,w,se,sw,ne,nw";
            this.uiDialog.resizable({
                cancel: ".ui-dialog-content",
                helper: E.resizeHelper,
                maxWidth: E.maxWidth,
                maxHeight: E.maxHeight,
                minWidth: E.minWidth,
                minHeight: E.minHeight,
                start: function() {
                    (E.resizeStart && E.resizeStart.apply(C.element[0], arguments))
                },
                resize: function() {
                    (E.autoResize && C._size.apply(C));
                    (E.resize && E.resize.apply(C.element[0], arguments))
                },
                handles: D,
                stop: function() {
                    (E.autoResize && C._size.apply(C));
                    (E.resizeStop && E.resizeStop.apply(C.element[0], arguments));
                    B.ui.dialog.overlay.resize()
                }
            })
        },
        _position: function(H) {
            var D = B(window), E = B(document), F = E.scrollTop(), C = E.scrollLeft(), G = F;
            if (B.inArray(H, ["center", "top", "right", "bottom", "left"]) >= 0) {
                H = [H == "right" || H == "left" ? H : "center", H == "top" || H == "bottom" ? H : "middle"]
            }
            if (H.constructor != Array) {
                H = ["center", "middle"]
            }
            if (H[0].constructor == Number) {
                C += H[0]
            } else {
                switch (H[0]) {
                    case"left":
                        C += 0;
                        break;
                    case"right":
                        C += D.width() - this.uiDialog.outerWidth();
                        break;
                    default:
                    case"center":
                        C += (D.width() - this.uiDialog.outerWidth()) / 2
                }
            }
            if (H[1].constructor == Number) {
                F += H[1]
            } else {
                switch (H[1]) {
                    case"top":
                        F += 0;
                        break;
                    case"bottom":
                        F += (B.browser.opera ? window.innerHeight : D.height()) - this.uiDialog.outerHeight();
                        break;
                    default:
                    case"middle":
                        F += ((B.browser.opera ? window.innerHeight : D.height()) - this.uiDialog.outerHeight()) / 2
                }
            }
            F = Math.max(F, G);
            this.uiDialog.css({
                top: F,
                left: C
            })
        },
        _setData: function(D, E) {
            (A[D] && this.uiDialog.data(A[D], E));
            switch (D) {
                case"buttons":
                    this._createButtons(E);
                    break;
                case"closeText":
                    this.uiDialogTitlebarCloseText.text(E);
                    break;
                case"draggable":
                    (E ? this._makeDraggable() : this.uiDialog.draggable("destroy"));
                    break;
                case"height":
                    this.uiDialog.height(E);
                    break;
                case"position":
                    this._position(E);
                    break;
                case"resizable":
                    var C = this.uiDialog, F = this.uiDialog.is(":data(resizable)");
                    (F && !E && C.resizable("destroy"));
                    (F && typeof E == "string" && C.resizable("option", "handles", E));
                    (F || this._makeResizable(E));
                    break;
                case"title":
                    B(".ui-dialog-title", this.uiDialogTitlebar).html(E || "&nbsp;");
                    break;
                case"width":
                    this.uiDialog.width(E);
                    break
            }
            B.widget.prototype._setData.apply(this, arguments)
        },
        _size: function() {
            var D = this.uiDialogContainer, G = this.uiDialogTitlebar, E = this.element, F = (parseInt(E.css("margin-top"), 10) || 0) + (parseInt(E.css("margin-bottom"), 10) || 0), C = (parseInt(E.css("margin-left"), 10) || 0) + (parseInt(E.css("margin-right"), 10) || 0);
            E.height(D.height() - G.outerHeight() - F);
            E.width(D.width() - C)
        }
    });
    B.extend(B.ui.dialog, {
        version: "1.6",
        defaults: {
            autoOpen: true,
            autoResize: true,
            bgiframe: false,
            buttons: {},
            closeOnEscape: true,
            closeText: "close",
            draggable: true,
            height: 200,
            minHeight: 100,
            minWidth: 150,
            modal: false,
            overlay: {},
            position: "center",
            resizable: true,
            stack: true,
            width: 300,
            zIndex: 1000
        },
        getter: "isOpen",
        uuid: 0,
        getTitleId: function(C) {
            return"ui-dialog-title-" + (C.attr("id") || ++this.uuid)
        },
        overlay: function(C) {
            this.$el = B.ui.dialog.overlay.create(C)
        }
    });
    B.extend(B.ui.dialog.overlay, {
        instances: [],
        events: B.map("focus,mousedown,mouseup,keydown,keypress,click".split(","), function(C) {
            return C + ".dialog-overlay"
        }).join(" "),
        create: function(D) {
            if (this.instances.length === 0) {
                setTimeout(function() {
                    B("a, :input").bind(B.ui.dialog.overlay.events, function() {
                        var F = false;
                        var H = B(this).parents(".ui-dialog");
                        if (H.length) {
                            var E = B(".ui-dialog-overlay");
                            if (E.length) {
                                var G = parseInt(E.css("z-index"), 10);
                                E.each(function() {
                                    G = Math.max(G, parseInt(B(this).css("z-index"), 10))
                                });
                                F = parseInt(H.css("z-index"), 10) > G
                            } else {
                                F = true
                            }
                        }
                        return F
                    })
                }, 1);
                B(document).bind("keydown.dialog-overlay", function(E) {
                    (D.options.closeOnEscape && E.keyCode && E.keyCode == B.ui.keyCode.ESCAPE && D.close())
                });
                B(window).bind("resize.dialog-overlay", B.ui.dialog.overlay.resize)
            }
            var C = B("<div></div>").appendTo(document.body).addClass("ui-dialog-overlay").css(B.extend({
                borderWidth: 0,
                margin: 0,
                padding: 0,
                position: "absolute",
                top: 0,
                left: 0,
                width: this.width(),
                height: this.height()
            }, D.options.overlay));
            (D.options.bgiframe && B.fn.bgiframe && C.bgiframe());
            this.instances.push(C);
            return C
        },
        destroy: function(C) {
            this.instances.splice(B.inArray(this.instances, C), 1);
            if (this.instances.length === 0) {
                B("a, :input").add([document, window]).unbind(".dialog-overlay")
            }
            C.remove()
        },
        height: function() {
            if (B.browser.msie && B.browser.version < 7) {
                var D = Math.max(document.documentElement.scrollHeight, document.body.scrollHeight);
                var C = Math.max(document.documentElement.offsetHeight, document.body.offsetHeight);
                if (D < C) {
                    return B(window).height() + "px"
                } else {
                    return D + "px"
                }
            } else {
                if (B.browser.opera) {
                    return Math.max(window.innerHeight, B(document).height()) + "px"
                } else {
                    return B(document).height() + "px"
                }
            }
        },
        width: function() {
            if (B.browser.msie && B.browser.version < 7) {
                var C = Math.max(document.documentElement.scrollWidth, document.body.scrollWidth);
                var D = Math.max(document.documentElement.offsetWidth, document.body.offsetWidth);
                if (C < D) {
                    return B(window).width() + "px"
                } else {
                    return C + "px"
                }
            } else {
                if (B.browser.opera) {
                    return Math.max(window.innerWidth, B(document).width()) + "px"
                } else {
                    return B(document).width() + "px"
                }
            }
        },
        resize: function() {
            var C = B([]);
            B.each(B.ui.dialog.overlay.instances, function() {
                C = C.add(this)
            });
            C.css({
                width: 0,
                height: 0
            }).css({
                width: B.ui.dialog.overlay.width(),
                height: B.ui.dialog.overlay.height()
            })
        }
    });
    B.extend(B.ui.dialog.overlay.prototype, {
        destroy: function() {
            B.ui.dialog.overlay.destroy(this.$el)
        }
    })
})(jQuery);
(function(A) {
    A.fn.unwrap = A.fn.unwrap || function(B) {
        return this.each(function() {
            A(this).parents(B).eq(0).after(this).remove()
        })
    };

    A.widget("ui.slider", {
        _init: function() {
            var B = this;
            this.element.addClass("ui-slider");
            this._initBoundaries();
            this.handle = A(this.options.handle, this.element);
            if (!this.handle.length) {
                B.handle = B.generated = A(B.options.handles || [0]).map(function() {
                    var D = A("<div/>").addClass("ui-slider-handle").appendTo(B.element);
                    if (this.id) {
                        D.attr("id", this.id)
                    }
                    return D[0]
                })
            }
            var C = function(D) {
                this.element = A(D);
                this.element.data("mouse", this);
                this.options = B.options;
                this.element.bind("mousedown", function() {
                    if (B.currentHandle) {
                        this.blur(B.currentHandle)
                    }
                    B._focus(this, true)
                });
                this._mouseInit()
            };

            A.extend(C.prototype, A.ui.mouse, {
                _mouseCapture: function() {
                    return true
                },
                _mouseStart: function(D) {
                    return B._start.call(B, D, this.element[0])
                },
                _mouseDrag: function(D) {
                    return B._drag.call(B, D, this.element[0])
                },
                _mouseStop: function(D) {
                    return B._stop.call(B, D, this.element[0])
                },
                trigger: function(D) {
                    this._mouseDown(D)
                }
            });
            A(this.handle).each(function() {
                new C(this)
            }).wrap('<a href="#" style="outline:none;border:none;"></a>').parent().bind("click", function() {
                return false
            }).bind("focus", function(D) {
                B._focus(this.firstChild)
            }).bind("blur", function(D) {
                B._blur(this.firstChild)
            }).bind("keydown", function(D) {
                if (!B.options.noKeyboard) {
                    return B._keydown(D.keyCode, this.firstChild)
                }
            });
            this.element.bind("mousedown.slider", function(D) {
                if (A(D.target).is(".ui-slider-handle")) {
                    return
                }
                B._click.apply(B, [D]);
                B.currentHandle.data("mouse").trigger(D);
                B.firstValue = B.firstValue + 1
            });
            A.each(this.options.handles || [], function(D, E) {
                B.moveTo(E.start, D, true)
            });
            if (!isNaN(this.options.startValue)) {
                this.moveTo(this.options.startValue, 0, true)
            }
            this.previousHandle = A(this.handle[0]);
            if (this.handle.length == 2 && this.options.range) {
                this._createRange()
            }
        },
        destroy: function() {
            this.element.removeClass("ui-slider ui-slider-disabled").removeData("slider").unbind(".slider");
            if (this.handle && this.handle.length) {
                this.handle.unwrap("a");
                this.handle.each(function() {
                    var B = A(this).data("mouse");
                    B && B._mouseDestroy()
                })
            }
            this.generated && this.generated.remove()
        },
        _start: function(B, C) {
            var D = this.options;
            if (D.disabled) {
                return false
            }
            this.actualSize = {
                width: this.element.outerWidth(),
                height: this.element.outerHeight()
            };

            if (!this.currentHandle) {
                this._focus(this.previousHandle, true)
            }
            this.offset = this.element.offset();
            this.handleOffset = this.currentHandle.offset();
            this.clickOffset = {
                top: B.pageY - this.handleOffset.top,
                left: B.pageX - this.handleOffset.left
            };

            this.firstValue = this.value();
            this._propagate("start", B);
            this._drag(B, C);
            return true
        },
        _drag: function(C, E) {
            var F = this.options;
            var B = {
                top: C.pageY - this.offset.top - this.clickOffset.top,
                left: C.pageX - this.offset.left - this.clickOffset.left
            };

            if (!this.currentHandle) {
                this._focus(this.previousHandle, true)
            }
            B.left = this._translateLimits(B.left, "x");
            B.top = this._translateLimits(B.top, "y");
            if (F.stepping.x) {
                var D = this._convertValue(B.left, "x");
                D = this._round(D / F.stepping.x) * F.stepping.x;
                B.left = this._translateValue(D, "x")
            }
            if (F.stepping.y) {
                var D = this._convertValue(B.top, "y");
                D = this._round(D / F.stepping.y) * F.stepping.y;
                B.top = this._translateValue(D, "y")
            }
            B.left = this._translateRange(B.left, "x");
            B.top = this._translateRange(B.top, "y");
            if (F.axis != "vertical") {
                this.currentHandle.css({
                    left: B.left
                })
            }
            if (F.axis != "horizontal") {
                this.currentHandle.css({
                    top: B.top
                })
            }
            this.currentHandle.data("mouse").sliderValue = {
                x: this._round(this._convertValue(B.left, "x")) || 0,
                y: this._round(this._convertValue(B.top, "y")) || 0
            };

            if (this.rangeElement) {
                this._updateRange()
            }
            this._propagate("slide", C);
            return false
        },
        _stop: function(B) {
            this._propagate("stop", B);
            if (this.firstValue != this.value()) {
                this._propagate("change", B)
            }
            this._focus(this.currentHandle, true);
            return false
        },
        _round: function(B) {
            return this.options.round ? parseInt(B, 10) : parseFloat(B)
        },
        _setData: function(B, C) {
            A.widget.prototype._setData.apply(this, arguments);
            if (/min|max|steps/.test(B)) {
                this._initBoundaries()
            }
            if (B == "range") {
                C ? this.handle.length == 2 && this._createRange() : this._removeRange()
            }
        },
        _initBoundaries: function() {
            var B = this.element[0], C = this.options;
            this.actualSize = {
                width: this.element.outerWidth(),
                height: this.element.outerHeight()
            };

            A.extend(C, {
                axis: C.axis || (B.offsetWidth < B.offsetHeight ? "vertical" : "horizontal"),
                max: !isNaN(parseInt(C.max, 10)) ? {
                    x: parseInt(C.max, 10),
                    y: parseInt(C.max, 10)
                } : ({
                    x: C.max && C.max.x || 100,
                    y: C.max && C.max.y || 100
                }),
                min: !isNaN(parseInt(C.min, 10)) ? {
                    x: parseInt(C.min, 10),
                    y: parseInt(C.min, 10)
                } : ({
                    x: C.min && C.min.x || 0,
                    y: C.min && C.min.y || 0
                })
            });
            C.realMax = {
                x: C.max.x - C.min.x,
                y: C.max.y - C.min.y
            };

            C.stepping = {
                x: C.stepping && C.stepping.x || parseInt(C.stepping, 10) || (C.steps ? C.realMax.x / (C.steps.x || parseInt(C.steps, 10) || C.realMax.x) : 0),
                y: C.stepping && C.stepping.y || parseInt(C.stepping, 10) || (C.steps ? C.realMax.y / (C.steps.y || parseInt(C.steps, 10) || C.realMax.y) : 0)
            }
        },
        _keydown: function(F, E) {
            if (this.options.disabled) {
                return
            }
            var C = F;
            if (/(33|34|35|36|37|38|39|40)/.test(C)) {
                var G = this.options, B, I;
                if (/(35|36)/.test(C)) {
                    B = (C == 35) ? G.max.x : G.min.x;
                    I = (C == 35) ? G.max.y : G.min.y
                } else {
                    var H = /(34|37|40)/.test(C) ? "-=" : "+=";
                    var D = /(37|38|39|40)/.test(C) ? "_oneStep" : "_pageStep";
                    B = H + this[D]("x");
                    I = H + this[D]("y")
                }
                this.moveTo({
                    x: B,
                    y: I
                }, E);
                return false
            }
            return true
        },
        _focus: function(B, C) {
            this.currentHandle = A(B).addClass("ui-slider-handle-active");
            if (C) {
                this.currentHandle.parent()[0].focus()
            }
        },
        _blur: function(B) {
            A(B).removeClass("ui-slider-handle-active");
            if (this.currentHandle && this.currentHandle[0] == B) {
                this.previousHandle = this.currentHandle;
                this.currentHandle = null
            }
        },
        _click: function(C) {
            var D = [C.pageX, C.pageY];
            var B = false;
            this.handle.each(function() {
                if (this == C.target) {
                    B = true
                }
            });
            if (B || this.options.disabled || !(this.currentHandle || this.previousHandle)) {
                return
            }
            if (!this.currentHandle && this.previousHandle) {
                this._focus(this.previousHandle, true)
            }
            this.offset = this.element.offset();
            this.moveTo({
                y: this._convertValue(C.pageY - this.offset.top - this.currentHandle[0].offsetHeight / 2, "y"),
                x: this._convertValue(C.pageX - this.offset.left - this.currentHandle[0].offsetWidth / 2, "x")
            }, null, !this.options.distance)
        },
        _createRange: function() {
            if (this.rangeElement) {
                return
            }
            this.rangeElement = A("<div></div>").addClass("ui-slider-range").css({
                position: "absolute"
            }).appendTo(this.element);
            this._updateRange()
        },
        _removeRange: function() {
            this.rangeElement.remove();
            this.rangeElement = null
        },
        _updateRange: function() {
            var C = this.options.axis == "vertical" ? "top" : "left";
            var B = this.options.axis == "vertical" ? "height" : "width";
            this.rangeElement.css(C, (this._round(A(this.handle[0]).css(C)) || 0) + this._handleSize(0, this.options.axis == "vertical" ? "y" : "x") / 2);
            this.rangeElement.css(B, (this._round(A(this.handle[1]).css(C)) || 0) - (this._round(A(this.handle[0]).css(C)) || 0))
        },
        _getRange: function() {
            return this.rangeElement ? this._convertValue(this._round(this.rangeElement.css(this.options.axis == "vertical" ? "height" : "width")), this.options.axis == "vertical" ? "y" : "x") : null
        },
        _handleIndex: function() {
            return this.handle.index(this.currentHandle[0])
        },
        value: function(D, B) {
            if (this.handle.length == 1) {
                this.currentHandle = this.handle
            }
            if (!B) {
                B = this.options.axis == "vertical" ? "y" : "x"
            }
            var C = A(D != undefined && D !== null ? this.handle[D] || D : this.currentHandle);
            if (C.data("mouse").sliderValue) {
                return this._round(C.data("mouse").sliderValue[B])
            } else {
                return this._round(((this._round(C.css(B == "x" ? "left" : "top")) / (this.actualSize[B == "x" ? "width" : "height"] - this._handleSize(D, B))) * this.options.realMax[B]) + this.options.min[B])
            }
        },
        _convertValue: function(C, B) {
            return this.options.min[B] + (C / (this.actualSize[B == "x" ? "width" : "height"] - this._handleSize(null, B))) * this.options.realMax[B]
        },
        _translateValue: function(C, B) {
            return((C - this.options.min[B]) / this.options.realMax[B]) * (this.actualSize[B == "x" ? "width" : "height"] - this._handleSize(null, B))
        },
        _translateRange: function(D, B) {
            if (this.rangeElement) {
                if (this.currentHandle[0] == this.handle[0] && D >= this._translateValue(this.value(1), B)) {
                    D = this._translateValue(this.value(1, B) - this._oneStep(B), B)
                }
                if (this.currentHandle[0] == this.handle[1] && D <= this._translateValue(this.value(0), B)) {
                    D = this._translateValue(this.value(0, B) + this._oneStep(B), B)
                }
            }
            if (this.options.handles) {
                var C = this.options.handles[this._handleIndex()];
                if (D < this._translateValue(C.min, B)) {
                    D = this._translateValue(C.min, B)
                } else {
                    if (D > this._translateValue(C.max, B)) {
                        D = this._translateValue(C.max, B)
                    }
                }
            }
            return D
        },
        _translateLimits: function(C, B) {
            if (C >= this.actualSize[B == "x" ? "width" : "height"] - this._handleSize(null, B)) {
                C = this.actualSize[B == "x" ? "width" : "height"] - this._handleSize(null, B)
            }
            if (C <= 0) {
                C = 0
            }
            return C
        },
        _handleSize: function(C, B) {
            return A(C != undefined && C !== null ? this.handle[C] : this.currentHandle)[0]["offset" + (B == "x" ? "Width" : "Height")]
        },
        _oneStep: function(B) {
            return this.options.stepping[B] || 1
        },
        _pageStep: function(B) {
            return 10
        },
        moveTo: function(F, E, G) {
            var H = this.options;
            this.actualSize = {
                width: this.element.outerWidth(),
                height: this.element.outerHeight()
            };

            if (E == undefined && !this.currentHandle && this.handle.length != 1) {
                return false
            }
            if (E == undefined && !this.currentHandle) {
                E = 0
            }
            if (E != undefined) {
                this.currentHandle = this.previousHandle = A(this.handle[E] || E)
            }
            if (F.x !== undefined && F.y !== undefined) {
                var B = F.x, I = F.y
            } else {
                var B = F, I = F
            }
            if (B !== undefined && B.constructor != Number) {
                var D = /^\-\=/.test(B), C = /^\+\=/.test(B);
                if (D || C) {
                    B = this.value(null, "x") + this._round(B.replace(D ? "=" : "+=", ""))
                } else {
                    B = isNaN(this._round(B)) ? undefined : this._round(B)
                }
            }
            if (I !== undefined && I.constructor != Number) {
                var D = /^\-\=/.test(I), C = /^\+\=/.test(I);
                if (D || C) {
                    I = this.value(null, "y") + this._round(I.replace(D ? "=" : "+=", ""))
                } else {
                    I = isNaN(this._round(I)) ? undefined : this._round(I)
                }
            }
            if (H.axis != "vertical" && B !== undefined) {
                if (H.stepping.x) {
                    B = this._round(B / H.stepping.x) * H.stepping.x
                }
                B = this._translateValue(B, "x");
                B = this._translateLimits(B, "x");
                B = this._translateRange(B, "x");
                H.animate ? this.currentHandle.stop().animate({
                    left: B
                }, (Math.abs(parseInt(this.currentHandle.css("left"), 10) - B)) * (!isNaN(parseInt(H.animate, 10)) ? H.animate : 5)) : this.currentHandle.css({
                    left: B
                })
            }
            if (H.axis != "horizontal" && I !== undefined) {
                if (H.stepping.y) {
                    I = this._round(I / H.stepping.y) * H.stepping.y
                }
                I = this._translateValue(I, "y");
                I = this._translateLimits(I, "y");
                I = this._translateRange(I, "y");
                H.animate ? this.currentHandle.stop().animate({
                    top: I
                }, (Math.abs(parseInt(this.currentHandle.css("top"), 10) - I)) * (!isNaN(parseInt(H.animate, 10)) ? H.animate : 5)) : this.currentHandle.css({
                    top: I
                })
            }
            if (this.rangeElement) {
                this._updateRange()
            }
            this.currentHandle.data("mouse").sliderValue = {
                x: this._round(this._convertValue(B, "x")) || 0,
                y: this._round(this._convertValue(I, "y")) || 0
            };

            if (!G) {
                this._propagate("start", null);
                this._propagate("slide", null);
                this._propagate("stop", null);
                this._propagate("change", null)
            }
        },
        _propagate: function(C, B) {
            A.ui.plugin.call(this, C, [B, this.ui()]);
            this.element.triggerHandler(C == "slide" ? C : "slide" + C, [B, this.ui()], this.options[C])
        },
        plugins: {},
        ui: function(B) {
            return{
                options: this.options,
                handle: this.currentHandle,
                value: this.options.axis != "both" || !this.options.axis ? this._round(this.value(null, this.options.axis == "vertical" ? "y" : "x")) : {
                    x: this._round(this.value(null, "x")),
                    y: this._round(this.value(null, "y"))
                },
                range: this._getRange()
            }
        }
    });
    A.extend(A.ui.slider, {
        getter: "value",
        version: "1.6",
        defaults: {
            animate: false,
            distance: 1,
            handle: ".ui-slider-handle",
            round: true
        }
    })
})(jQuery);
(function(A) {
    A.widget("ui.tabs", {
        _init: function() {
            this._tabify(true)
        },
        destroy: function() {
            var B = this.options;
            this.element.unbind(".tabs").removeClass(B.navClass).removeData("tabs");
            this.$tabs.each(function() {
                var C = A.data(this, "href.tabs");
                if (C) {
                    this.href = C
                }
                var D = A(this).unbind(".tabs");
                A.each(["href", "load", "cache"], function(E, F) {
                    D.removeData(F + ".tabs")
                })
            });
            this.$lis.add(this.$panels).each(function() {
                if (A.data(this, "destroy.tabs")) {
                    A(this).remove()
                } else {
                    A(this).removeClass([B.selectedClass, B.deselectableClass, B.disabledClass, B.panelClass, B.hideClass].join(" "))
                }
            });
            if (B.cookie) {
                this._cookie(null, B.cookie)
            }
        },
        _setData: function(B, C) {
            if ((/^selected/).test(B)) {
                this.select(C)
            } else {
                this.options[B] = C;
                this._tabify()
            }
        },
        length: function() {
            return this.$tabs.length
        },
        _tabId: function(B) {
            return B.title && B.title.replace(/\s/g, "_").replace(/[^A-Za-z0-9\-_:\.]/g, "") || this.options.idPrefix + A.data(B)
        },
        _sanitizeSelector: function(B) {
            return B.replace(/:/g, "\\:")
        },
        _cookie: function() {
            var B = this.cookie || (this.cookie = "ui-tabs-" + A.data(this.element[0]));
            return A.cookie.apply(null, [B].concat(A.makeArray(arguments)))
        },
        _tabify: function(N) {
            this.$lis = A("li:has(a[href])", this.element);
            this.$tabs = this.$lis.map(function() {
                return A("a", this)[0]
            });
            this.$panels = A([]);
            var O = this, C = this.options;
            this.$tabs.each(function(Q, P) {
                if (P.hash && P.hash.replace("#", "")) {
                    O.$panels = O.$panels.add(O._sanitizeSelector(P.hash))
                } else {
                    if (A(P).attr("href") != "#") {
                        A.data(P, "href.tabs", P.href);
                        A.data(P, "load.tabs", P.href);
                        var S = O._tabId(P);
                        P.href = "#" + S;
                        var R = A("#" + S);
                        if (!R.length) {
                            R = A(C.panelTemplate).attr("id", S).addClass(C.panelClass).insertAfter(O.$panels[Q - 1] || O.element);
                            R.data("destroy.tabs", true)
                        }
                        O.$panels = O.$panels.add(R)
                    } else {
                        C.disabled.push(Q + 1)
                    }
                }
            });
            if (N) {
                this.element.addClass(C.navClass);
                this.$panels.addClass(C.panelClass);
                if (C.selected === undefined) {
                    if (location.hash) {
                        this.$tabs.each(function(Q, P) {
                            if (P.hash == location.hash) {
                                C.selected = Q;
                                return false
                            }
                        })
                    } else {
                        if (C.cookie) {
                            var I = parseInt(O._cookie(), 10);
                            if (I && O.$tabs[I]) {
                                C.selected = I
                            }
                        } else {
                            if (O.$lis.filter("." + C.selectedClass).length) {
                                C.selected = O.$lis.index(O.$lis.filter("." + C.selectedClass)[0])
                            }
                        }
                    }
                }
                C.selected = C.selected === null || C.selected !== undefined ? C.selected : 0;
                C.disabled = A.unique(C.disabled.concat(A.map(this.$lis.filter("." + C.disabledClass), function(Q, P) {
                    return O.$lis.index(Q)
                }))).sort();
                if (A.inArray(C.selected, C.disabled) != -1) {
                    C.disabled.splice(A.inArray(C.selected, C.disabled), 1)
                }
                this.$panels.addClass(C.hideClass);
                this.$lis.removeClass(C.selectedClass);
                if (C.selected !== null) {
                    this.$panels.eq(C.selected).removeClass(C.hideClass);
                    var E = [C.selectedClass];
                    if (C.deselectable) {
                        E.push(C.deselectableClass)
                    }
                    this.$lis.eq(C.selected).addClass(E.join(" "));
                    var J = function() {
                        O._trigger("show", null, O.ui(O.$tabs[C.selected], O.$panels[C.selected]))
                    };

                    if (A.data(this.$tabs[C.selected], "load.tabs")) {
                        this.load(C.selected, J)
                    } else {
                        J()
                    }
                }
                A(window).bind("unload", function() {
                    O.$tabs.unbind(".tabs");
                    O.$lis = O.$tabs = O.$panels = null
                })
            } else {
                C.selected = this.$lis.index(this.$lis.filter("." + C.selectedClass)[0])
            }
            if (C.cookie) {
                this._cookie(C.selected, C.cookie)
            }
            for (var G = 0, M; M = this.$lis[G]; G++) {
                A(M)[A.inArray(G, C.disabled) != -1 && !A(M).hasClass(C.selectedClass) ? "addClass" : "removeClass"](C.disabledClass)
            }
            if (C.cache === false) {
                this.$tabs.removeData("cache.tabs")
            }
            var B, H;
            if (C.fx) {
                if (C.fx.constructor == Array) {
                    B = C.fx[0];
                    H = C.fx[1]
                } else {
                    B = H = C.fx
                }
            }
            function D(P, Q) {
                P.css({
                    display: ""
                });
                if (A.browser.msie && Q.opacity) {
                    P[0].style.removeAttribute("filter")
                }
            }
            var K = H ? function(P, Q) {
                Q.animate(H, H.duration || "normal", function() {
                    Q.removeClass(C.hideClass);
                    D(Q, H);
                    O._trigger("show", null, O.ui(P, Q[0]))
                })
            } : function(P, Q) {
                Q.removeClass(C.hideClass);
                O._trigger("show", null, O.ui(P, Q[0]))
            };

            var L = B ? function(Q, P, R) {
                P.animate(B, B.duration || "normal", function() {
                    P.addClass(C.hideClass);
                    D(P, B);
                    if (R) {
                        K(Q, R, P)
                    }
                })
            } : function(Q, P, R) {
                P.addClass(C.hideClass);
                if (R) {
                    K(Q, R)
                }
            };

            function F(R, T, P, S) {
                var Q = [C.selectedClass];
                if (C.deselectable) {
                    Q.push(C.deselectableClass)
                }
                T.addClass(Q.join(" ")).siblings().removeClass(Q.join(" "));
                L(R, P, S)
            }
            this.$tabs.unbind(".tabs").bind(C.event + ".tabs", function() {
                var S = A(this).parents("li:eq(0)"), P = O.$panels.filter(":visible"), R = A(O._sanitizeSelector(this.hash));
                if ((S.hasClass(C.selectedClass) && !C.deselectable) || S.hasClass(C.disabledClass) || A(this).hasClass(C.loadingClass) || O._trigger("select", null, O.ui(this, R[0])) === false) {
                    this.blur();
                    return false
                }
                C.selected = O.$tabs.index(this);
                if (C.deselectable) {
                    if (S.hasClass(C.selectedClass)) {
                        O.options.selected = null;
                        S.removeClass([C.selectedClass, C.deselectableClass].join(" "));
                        O.$panels.stop();
                        L(this, P);
                        this.blur();
                        return false
                    } else {
                        if (!P.length) {
                            O.$panels.stop();
                            var Q = this;
                            O.load(O.$tabs.index(this), function() {
                                S.addClass([C.selectedClass, C.deselectableClass].join(" "));
                                K(Q, R)
                            });
                            this.blur();
                            return false
                        }
                    }
                }
                if (C.cookie) {
                    O._cookie(C.selected, C.cookie)
                }
                O.$panels.stop();
                if (R.length) {
                    var Q = this;
                    O.load(O.$tabs.index(this), P.length ? function() {
                        F(Q, S, P, R)
                    } : function() {
                        S.addClass(C.selectedClass);
                        K(Q, R)
                    })
                } else {
                    throw"jQuery UI Tabs: Mismatching fragment identifier."
                }
                if (A.browser.msie) {
                    this.blur()
                }
                return false
            });
            if (C.event != "click") {
                this.$tabs.bind("click.tabs", function() {
                    return false
                })
            }
        },
        add: function(E, D, C) {
            if (C == undefined) {
                C = this.$tabs.length
            }
            var G = this.options;
            var I = A(G.tabTemplate.replace(/#\{href\}/g, E).replace(/#\{label\}/g, D));
            I.data("destroy.tabs", true);
            var H = E.indexOf("#") == 0 ? E.replace("#", "") : this._tabId(A("a:first-child", I)[0]);
            var F = A("#" + H);
            if (!F.length) {
                F = A(G.panelTemplate).attr("id", H).addClass(G.hideClass).data("destroy.tabs", true)
            }
            F.addClass(G.panelClass);
            if (C >= this.$lis.length) {
                I.appendTo(this.element);
                F.appendTo(this.element[0].parentNode)
            } else {
                I.insertBefore(this.$lis[C]);
                F.insertBefore(this.$panels[C])
            }
            G.disabled = A.map(G.disabled, function(K, J) {
                return K >= C ? ++K : K
            });
            this._tabify();
            if (this.$tabs.length == 1) {
                I.addClass(G.selectedClass);
                F.removeClass(G.hideClass);
                var B = A.data(this.$tabs[0], "load.tabs");
                if (B) {
                    this.load(C, B)
                }
            }
            this._trigger("add", null, this.ui(this.$tabs[C], this.$panels[C]))
        },
        remove: function(B) {
            var D = this.options, E = this.$lis.eq(B).remove(), C = this.$panels.eq(B).remove();
            if (E.hasClass(D.selectedClass) && this.$tabs.length > 1) {
                this.select(B + (B + 1 < this.$tabs.length ? 1 : -1))
            }
            D.disabled = A.map(A.grep(D.disabled, function(G, F) {
                return G != B
            }), function(G, F) {
                return G >= B ? --G : G
            });
            this._tabify();
            this._trigger("remove", null, this.ui(E.find("a")[0], C[0]))
        },
        enable: function(B) {
            var C = this.options;
            if (A.inArray(B, C.disabled) == -1) {
                return
            }
            var D = this.$lis.eq(B).removeClass(C.disabledClass);
            if (A.browser.safari) {
                D.css("display", "inline-block");
                setTimeout(function() {
                    D.css("display", "block")
                }, 0)
            }
            C.disabled = A.grep(C.disabled, function(F, E) {
                return F != B
            });
            this._trigger("enable", null, this.ui(this.$tabs[B], this.$panels[B]))
        },
        disable: function(C) {
            var B = this, D = this.options;
            if (C != D.selected) {
                this.$lis.eq(C).addClass(D.disabledClass);
                D.disabled.push(C);
                D.disabled.sort();
                this._trigger("disable", null, this.ui(this.$tabs[C], this.$panels[C]))
            }
        },
        select: function(B) {
            if (typeof B == "string") {
                B = this.$tabs.index(this.$tabs.filter("[href$=" + B + "]")[0])
            }
            this.$tabs.eq(B).trigger(this.options.event + ".tabs")
        },
        load: function(G, K) {
            var L = this, D = this.options, E = this.$tabs.eq(G), J = E[0], H = K == undefined || K === false, B = E.data("load.tabs");
            K = K || function() {
            };

            if (!B || !H && A.data(J, "cache.tabs")) {
                K();
                return
            }
            var M = function(N) {
                var O = A(N), P = O.find("*:last");
                return P.length && P.is(":not(img)") && P || O
            };

            var C = function() {
                L.$tabs.filter("." + D.loadingClass).removeClass(D.loadingClass).each(function() {
                    if (D.spinner) {
                        M(this).parent().html(M(this).data("label.tabs"))
                    }
                });
                L.xhr = null
            };

            if (D.spinner) {
                var I = M(J).html();
                M(J).wrapInner("<em></em>").find("em").data("label.tabs", I).html(D.spinner)
            }
            var F = A.extend({}, D.ajaxOptions, {
                url: B,
                success: function(P, N) {
                    A(L._sanitizeSelector(J.hash)).html(P);
                    C();
                    if (D.cache) {
                        A.data(J, "cache.tabs", true)
                    }
                    L._trigger("load", null, L.ui(L.$tabs[G], L.$panels[G]));
                    try {
                        D.ajaxOptions.success(P, N)
                    } catch (O) {
                    }
                    K()
                }
            });
            if (this.xhr) {
                this.xhr.abort();
                C()
            }
            E.addClass(D.loadingClass);
            L.xhr = A.ajax(F)
        },
        url: function(C, B) {
            this.$tabs.eq(C).removeData("cache.tabs").data("load.tabs", B)
        },
        ui: function(C, B) {
            return{
                options: this.options,
                tab: C,
                panel: B,
                index: this.$tabs.index(C)
            }
        }
    });
    A.extend(A.ui.tabs, {
        version: "1.6",
        getter: "length",
        defaults: {
            ajaxOptions: null,
            cache: false,
            cookie: null,
            deselectable: false,
            deselectableClass: "ui-tabs-deselectable",
            disabled: [],
            disabledClass: "ui-tabs-disabled",
            event: "click",
            fx: null,
            hideClass: "ui-tabs-hide",
            idPrefix: "ui-tabs-",
            loadingClass: "ui-tabs-loading",
            navClass: "ui-tabs-nav",
            panelClass: "ui-tabs-panel",
            panelTemplate: "<div></div>",
            selectedClass: "ui-tabs-selected",
            spinner: "Loading&#8230;",
            tabTemplate: '<li><a href="#{href}"><span>#{label}</span></a></li>'
        }
    });
    A.extend(A.ui.tabs.prototype, {
        rotation: null,
        rotate: function(C, F) {
            F = F || false;
            var B = this, E = this.options.selected;
            function G() {
                B.rotation = setInterval(function() {
                    E = ++E < B.$tabs.length ? E : 0;
                    B.select(E)
                }, C)
            }
            function D(H) {
                if (!H || H.clientX) {
                    clearInterval(B.rotation)
                }
            }
            if (C) {
                G();
                if (!F) {
                    this.$tabs.bind(this.options.event + ".tabs", D)
                } else {
                    this.$tabs.bind(this.options.event + ".tabs", function() {
                        D();
                        E = B.options.selected;
                        G()
                    })
                }
            } else {
                D();
                this.$tabs.unbind(this.options.event + ".tabs", D)
            }
        }
    })
})(jQuery);
(function($) {
    $.extend($.ui, {
        datepicker: {
            version: "1.6"
        }
    });
    var PROP_NAME = "datepicker";
    function Datepicker() {
        this.debug = false;
        this._curInst = null;
        this._keyEvent = false;
        this._disabledInputs = [];
        this._datepickerShowing = false;
        this._inDialog = false;
        this._mainDivId = "ui-datepicker-div";
        this._inlineClass = "ui-datepicker-inline";
        this._appendClass = "ui-datepicker-append";
        this._triggerClass = "ui-datepicker-trigger";
        this._dialogClass = "ui-datepicker-dialog";
        this._promptClass = "ui-datepicker-prompt";
        this._disableClass = "ui-datepicker-disabled";
        this._unselectableClass = "ui-datepicker-unselectable";
        this._currentClass = "ui-datepicker-current-day";
        this._dayOverClass = "ui-datepicker-days-cell-over";
        this._weekOverClass = "ui-datepicker-week-over";
        this.regional = [];
        this.regional[""] = {
            clearText: "Clear",
            clearStatus: "Erase the current date",
            closeText: "Close",
            closeStatus: "Close without change",
            prevText: "&#x3c;Prev",
            prevStatus: "Show the previous month",
            prevBigText: "&#x3c;&#x3c;",
            prevBigStatus: "Show the previous year",
            nextText: "Next&#x3e;",
            nextStatus: "Show the next month",
            nextBigText: "&#x3e;&#x3e;",
            nextBigStatus: "Show the next year",
            currentText: "Today",
            currentStatus: "Show the current month",
            monthNames: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
            monthNamesShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
            monthStatus: "Show a different month",
            yearStatus: "Show a different year",
            weekHeader: "Wk",
            weekStatus: "Week of the year",
            dayNames: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
            dayNamesShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
            dayNamesMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
            dayStatus: "Set DD as first week day",
            dateStatus: "Select DD, M d",
            dateFormat: "mm/dd/yy",
            firstDay: 0,
            initStatus: "Select a date",
            isRTL: false
        };

        this._defaults = {
            showOn: "focus",
            showAnim: "show",
            showOptions: {},
            defaultDate: null,
            appendText: "",
            buttonText: "...",
            buttonImage: "",
            buttonImageOnly: false,
            closeAtTop: true,
            mandatory: false,
            hideIfNoPrevNext: false,
            navigationAsDateFormat: false,
            showBigPrevNext: false,
            gotoCurrent: false,
            changeMonth: true,
            changeYear: true,
            showMonthAfterYear: false,
            yearRange: "-10:+10",
            changeFirstDay: true,
            highlightWeek: false,
            showOtherMonths: false,
            showWeeks: false,
            calculateWeek: this.iso8601Week,
            shortYearCutoff: "+10",
            showStatus: false,
            statusForDate: this.dateStatus,
            minDate: null,
            maxDate: null,
            duration: "normal",
            beforeShowDay: null,
            beforeShow: null,
            onSelect: null,
            onChangeMonthYear: null,
            onClose: null,
            numberOfMonths: 1,
            showCurrentAtPos: 0,
            stepMonths: 1,
            stepBigMonths: 12,
            rangeSelect: false,
            rangeSeparator: " - ",
            altField: "",
            altFormat: "",
            constrainInput: true
        };

        $.extend(this._defaults, this.regional[""]);
        this.dpDiv = $('<div id="' + this._mainDivId + '" style="display: none;"></div>')
    }
    $.extend(Datepicker.prototype, {
        markerClassName: "hasDatepicker",
        log: function() {
            if (this.debug) {
                console.log.apply("", arguments)
            }
        },
        setDefaults: function(settings) {
            extendRemove(this._defaults, settings || {});
            return this
        },
        _attachDatepicker: function(target, settings) {
            var inlineSettings = null;
            for (var attrName in this._defaults) {
                var attrValue = target.getAttribute("date:" + attrName);
                if (attrValue) {
                    inlineSettings = inlineSettings || {};

                    try {
                        inlineSettings[attrName] = eval(attrValue)
                    } catch (err) {
                        inlineSettings[attrName] = attrValue
                    }
                }
            }
            var nodeName = target.nodeName.toLowerCase();
            var inline = (nodeName == "div" || nodeName == "span");
            if (!target.id) {
                target.id = "dp" + (++this.uuid)
            }
            var inst = this._newInst($(target), inline);
            inst.settings = $.extend({}, settings || {}, inlineSettings || {});
            if (nodeName == "input") {
                this._connectDatepicker(target, inst)
            } else {
                if (inline) {
                    this._inlineDatepicker(target, inst)
                }
            }
        },
        _newInst: function(target, inline) {
            var id = target[0].id.replace(/([:\[\]\.])/g, "\\\\$1");
            return{
                id: id,
                input: target,
                selectedDay: 0,
                selectedMonth: 0,
                selectedYear: 0,
                drawMonth: 0,
                drawYear: 0,
                inline: inline,
                dpDiv: (!inline ? this.dpDiv : $('<div class="' + this._inlineClass + '"></div>'))
            }
        },
        _connectDatepicker: function(target, inst) {
            var input = $(target);
            if (input.hasClass(this.markerClassName)) {
                return
            }
            var appendText = this._get(inst, "appendText");
            var isRTL = this._get(inst, "isRTL");
            if (appendText) {
                input[isRTL ? "before" : "after"]('<span class="' + this._appendClass + '">' + appendText + "</span>")
            }
            var showOn = this._get(inst, "showOn");
            if (showOn == "focus" || showOn == "both") {
                input.focus(this._showDatepicker)
            }
            if (showOn == "button" || showOn == "both") {
                var buttonText = this._get(inst, "buttonText");
                var buttonImage = this._get(inst, "buttonImage");
                var trigger = $(this._get(inst, "buttonImageOnly") ? $("<img/>").addClass(this._triggerClass).attr({
                    src: buttonImage,
                    alt: buttonText,
                    title: buttonText
                }) : $('<button type="button"></button>').addClass(this._triggerClass).html(buttonImage == "" ? buttonText : $("<img/>").attr({
                    src: buttonImage,
                    alt: buttonText,
                    title: buttonText
                })));
                input[isRTL ? "before" : "after"](trigger);
                trigger.click(function() {
                    if ($.datepicker._datepickerShowing && $.datepicker._lastInput == target) {
                        $.datepicker._hideDatepicker()
                    } else {
                        $.datepicker._showDatepicker(target)
                    }
                    return false
                })
            }
            input.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).bind("setData.datepicker", function(event, key, value) {
                inst.settings[key] = value
            }).bind("getData.datepicker", function(event, key) {
                return this._get(inst, key)
            });
            $.data(target, PROP_NAME, inst)
        },
        _inlineDatepicker: function(target, inst) {
            var divSpan = $(target);
            if (divSpan.hasClass(this.markerClassName)) {
                return
            }
            divSpan.addClass(this.markerClassName).append(inst.dpDiv).bind("setData.datepicker", function(event, key, value) {
                inst.settings[key] = value
            }).bind("getData.datepicker", function(event, key) {
                return this._get(inst, key)
            });
            $.data(target, PROP_NAME, inst);
            this._setDate(inst, this._getDefaultDate(inst));
            this._updateDatepicker(inst);
            this._updateAlternate(inst)
        },
        _dialogDatepicker: function(input, dateText, onSelect, settings, pos) {
            var inst = this._dialogInst;
            if (!inst) {
                var id = "dp" + (++this.uuid);
                this._dialogInput = $('<input type="text" id="' + id + '" size="1" style="position: absolute; top: -100px;"/>');
                this._dialogInput.keydown(this._doKeyDown);
                $("body").append(this._dialogInput);
                inst = this._dialogInst = this._newInst(this._dialogInput, false);
                inst.settings = {};

                $.data(this._dialogInput[0], PROP_NAME, inst)
            }
            extendRemove(inst.settings, settings || {});
            this._dialogInput.val(dateText);
            this._pos = (pos ? (pos.length ? pos : [pos.pageX, pos.pageY]) : null);
            if (!this._pos) {
                var browserWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
                var browserHeight = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
                var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft;
                var scrollY = document.documentElement.scrollTop || document.body.scrollTop;
                this._pos = [(browserWidth / 2) - 100 + scrollX, (browserHeight / 2) - 150 + scrollY]
            }
            this._dialogInput.css("left", this._pos[0] + "px").css("top", this._pos[1] + "px");
            inst.settings.onSelect = onSelect;
            this._inDialog = true;
            this.dpDiv.addClass(this._dialogClass);
            this._showDatepicker(this._dialogInput[0]);
            if ($.blockUI) {
                $.blockUI(this.dpDiv)
            }
            $.data(this._dialogInput[0], PROP_NAME, inst);
            return this
        },
        _destroyDatepicker: function(target) {
            var $target = $(target);
            if (!$target.hasClass(this.markerClassName)) {
                return
            }
            var nodeName = target.nodeName.toLowerCase();
            $.removeData(target, PROP_NAME);
            if (nodeName == "input") {
                $target.siblings("." + this._appendClass).remove().end().siblings("." + this._triggerClass).remove().end().removeClass(this.markerClassName).unbind("focus", this._showDatepicker).unbind("keydown", this._doKeyDown).unbind("keypress", this._doKeyPress)
            } else {
                if (nodeName == "div" || nodeName == "span") {
                    $target.removeClass(this.markerClassName).empty()
                }
            }
        },
        _enableDatepicker: function(target) {
            var $target = $(target);
            if (!$target.hasClass(this.markerClassName)) {
                return
            }
            var nodeName = target.nodeName.toLowerCase();
            if (nodeName == "input") {
                target.disabled = false;
                $target.siblings("button." + this._triggerClass).each(function() {
                    this.disabled = false
                }).end().siblings("img." + this._triggerClass).css({
                    opacity: "1.0",
                    cursor: ""
                })
            } else {
                if (nodeName == "div" || nodeName == "span") {
                    $target.children("." + this._disableClass).remove()
                }
            }
            this._disabledInputs = $.map(this._disabledInputs, function(value) {
                return(value == target ? null : value)
            })
        },
        _disableDatepicker: function(target) {
            var $target = $(target);
            if (!$target.hasClass(this.markerClassName)) {
                return
            }
            var nodeName = target.nodeName.toLowerCase();
            if (nodeName == "input") {
                target.disabled = true;
                $target.siblings("button." + this._triggerClass).each(function() {
                    this.disabled = true
                }).end().siblings("img." + this._triggerClass).css({
                    opacity: "0.5",
                    cursor: "default"
                })
            } else {
                if (nodeName == "div" || nodeName == "span") {
                    var inline = $target.children("." + this._inlineClass);
                    var offset = inline.offset();
                    var relOffset = {
                        left: 0,
                        top: 0
                    };

                    inline.parents().each(function() {
                        if ($(this).css("position") == "relative") {
                            relOffset = $(this).offset();
                            return false
                        }
                    });
                    $target.prepend('<div class="' + this._disableClass + '" style="' + ($.browser.msie ? "background-color: transparent; " : "") + "width: " + inline.width() + "px; height: " + inline.height() + "px; left: " + (offset.left - relOffset.left) + "px; top: " + (offset.top - relOffset.top) + 'px;"></div>')
                }
            }
            this._disabledInputs = $.map(this._disabledInputs, function(value) {
                return(value == target ? null : value)
            });
            this._disabledInputs[this._disabledInputs.length] = target
        },
        _isDisabledDatepicker: function(target) {
            if (!target) {
                return false
            }
            for (var i = 0; i < this._disabledInputs.length; i++) {
                if (this._disabledInputs[i] == target) {
                    return true
                }
            }
            return false
        },
        _getInst: function(target) {
            try {
                return $.data(target, PROP_NAME)
            } catch (err) {
                throw"Missing instance data for this datepicker"
            }
        },
        _optionDatepicker: function(target, name, value) {
            var settings = name || {};

            if (typeof name == "string") {
                settings = {};

                settings[name] = value
            }
            var inst = this._getInst(target);
            if (inst) {
                if (this._curInst == inst) {
                    this._hideDatepicker(null)
                }
                extendRemove(inst.settings, settings);
                var date = new Date();
                extendRemove(inst, {
                    rangeStart: null,
                    endDay: null,
                    endMonth: null,
                    endYear: null,
                    selectedDay: date.getDate(),
                    selectedMonth: date.getMonth(),
                    selectedYear: date.getFullYear(),
                    currentDay: date.getDate(),
                    currentMonth: date.getMonth(),
                    currentYear: date.getFullYear(),
                    drawMonth: date.getMonth(),
                    drawYear: date.getFullYear()
                });
                this._updateDatepicker(inst)
            }
        },
        _changeDatepicker: function(target, name, value) {
            this._optionDatepicker(target, name, value)
        },
        _refreshDatepicker: function(target) {
            var inst = this._getInst(target);
            if (inst) {
                this._updateDatepicker(inst)
            }
        },
        _setDateDatepicker: function(target, date, endDate) {
            var inst = this._getInst(target);
            if (inst) {
                this._setDate(inst, date, endDate);
                this._updateDatepicker(inst);
                this._updateAlternate(inst)
            }
        },
        _getDateDatepicker: function(target) {
            var inst = this._getInst(target);
            if (inst && !inst.inline) {
                this._setDateFromField(inst)
            }
            return(inst ? this._getDate(inst) : null)
        },
        _doKeyDown: function(event) {
            var inst = $.datepicker._getInst(event.target);
            var handled = true;
            inst._keyEvent = true;
            if ($.datepicker._datepickerShowing) {
                switch (event.keyCode) {
                    case 9:
                        $.datepicker._hideDatepicker(null, "");
                        break;
                    case 13:
                        var sel = $("td." + $.datepicker._dayOverClass + ", td." + $.datepicker._currentClass, inst.dpDiv);
                        if (sel[0]) {
                            $.datepicker._selectDay(event.target, inst.selectedMonth, inst.selectedYear, sel[0])
                        } else {
                            $.datepicker._hideDatepicker(null, $.datepicker._get(inst, "duration"))
                        }
                        return false;
                        break;
                    case 27:
                        $.datepicker._hideDatepicker(null, $.datepicker._get(inst, "duration"));
                        break;
                    case 33:
                        $.datepicker._adjustDate(event.target, (event.ctrlKey ? -$.datepicker._get(inst, "stepBigMonths") : -$.datepicker._get(inst, "stepMonths")), "M");
                        break;
                    case 34:
                        $.datepicker._adjustDate(event.target, (event.ctrlKey ? +$.datepicker._get(inst, "stepBigMonths") : +$.datepicker._get(inst, "stepMonths")), "M");
                        break;
                    case 35:
                        if (event.ctrlKey || event.metaKey) {
                            $.datepicker._clearDate(event.target)
                        }
                        handled = event.ctrlKey || event.metaKey;
                        break;
                    case 36:
                        if (event.ctrlKey || event.metaKey) {
                            $.datepicker._gotoToday(event.target)
                        }
                        handled = event.ctrlKey || event.metaKey;
                        break;
                    case 37:
                        if (event.ctrlKey || event.metaKey) {
                            $.datepicker._adjustDate(event.target, -1, "D")
                        }
                        handled = event.ctrlKey || event.metaKey;
                        if (event.originalEvent.altKey) {
                            $.datepicker._adjustDate(event.target, (event.ctrlKey ? -$.datepicker._get(inst, "stepBigMonths") : -$.datepicker._get(inst, "stepMonths")), "M")
                        }
                        break;
                    case 38:
                        if (event.ctrlKey || event.metaKey) {
                            $.datepicker._adjustDate(event.target, -7, "D")
                        }
                        handled = event.ctrlKey || event.metaKey;
                        break;
                    case 39:
                        if (event.ctrlKey || event.metaKey) {
                            $.datepicker._adjustDate(event.target, +1, "D")
                        }
                        handled = event.ctrlKey || event.metaKey;
                        if (event.originalEvent.altKey) {
                            $.datepicker._adjustDate(event.target, (event.ctrlKey ? +$.datepicker._get(inst, "stepBigMonths") : +$.datepicker._get(inst, "stepMonths")), "M")
                        }
                        break;
                    case 40:
                        if (event.ctrlKey || event.metaKey) {
                            $.datepicker._adjustDate(event.target, +7, "D")
                        }
                        handled = event.ctrlKey || event.metaKey;
                        break;
                    default:
                        handled = false
                }
            } else {
                if (event.keyCode == 36 && event.ctrlKey) {
                    $.datepicker._showDatepicker(this)
                } else {
                    handled = false
                }
            }
            if (handled) {
                event.preventDefault();
                event.stopPropagation()
            }
        },
        _doKeyPress: function(event) {
            var inst = $.datepicker._getInst(event.target);
            if ($.datepicker._get(inst, "constrainInput")) {
                var chars = $.datepicker._possibleChars($.datepicker._get(inst, "dateFormat"));
                var chr = String.fromCharCode(event.charCode == undefined ? event.keyCode : event.charCode);
                return event.ctrlKey || (chr < " " || !chars || chars.indexOf(chr) > -1)
            }
        },
        _showDatepicker: function(input) {
            input = input.target || input;
            if (input.nodeName.toLowerCase() != "input") {
                input = $("input", input.parentNode)[0]
            }
            if ($.datepicker._isDisabledDatepicker(input) || $.datepicker._lastInput == input) {
                return
            }
            var inst = $.datepicker._getInst(input);
            var beforeShow = $.datepicker._get(inst, "beforeShow");
            extendRemove(inst.settings, (beforeShow ? beforeShow.apply(input, [input, inst]) : {}));
            $.datepicker._hideDatepicker(null, "");
            $.datepicker._lastInput = input;
            $.datepicker._setDateFromField(inst);
            if ($.datepicker._inDialog) {
                input.value = ""
            }
            if (!$.datepicker._pos) {
                $.datepicker._pos = $.datepicker._findPos(input);
                $.datepicker._pos[1] += input.offsetHeight
            }
            var isFixed = false;
            $(input).parents().each(function() {
                isFixed |= $(this).css("position") == "fixed";
                return!isFixed
            });
            if (isFixed && $.browser.opera) {
                $.datepicker._pos[0] -= document.documentElement.scrollLeft;
                $.datepicker._pos[1] -= document.documentElement.scrollTop
            }
            var offset = {
                left: $.datepicker._pos[0],
                top: $.datepicker._pos[1]
            };

            $.datepicker._pos = null;
            inst.rangeStart = null;
            inst.dpDiv.css({
                position: "absolute",
                display: "block",
                top: "-1000px"
            });
            $.datepicker._updateDatepicker(inst);
            inst.dpDiv.width($.datepicker._getNumberOfMonths(inst)[1] * $(".ui-datepicker", inst.dpDiv[0])[0].offsetWidth);
            offset = $.datepicker._checkOffset(inst, offset, isFixed);
            inst.dpDiv.css({
                position: ($.datepicker._inDialog && $.blockUI ? "static" : (isFixed ? "fixed" : "absolute")),
                display: "none",
                left: offset.left + "px",
                top: offset.top + "px"
            });
            if (!inst.inline) {
                var showAnim = $.datepicker._get(inst, "showAnim") || "show";
                var duration = $.datepicker._get(inst, "duration");
                var postProcess = function() {
                    $.datepicker._datepickerShowing = true;
                    if ($.browser.msie && parseInt($.browser.version, 10) < 7) {
                        $("iframe.ui-datepicker-cover").css({
                            width: inst.dpDiv.width() + 4,
                            height: inst.dpDiv.height() + 4
                        })
                    }
                };

                if ($.effects && $.effects[showAnim]) {
                    inst.dpDiv.show(showAnim, $.datepicker._get(inst, "showOptions"), duration, postProcess)
                } else {
                    inst.dpDiv[showAnim](duration, postProcess)
                }
                if (duration == "") {
                    postProcess()
                }
                if (inst.input[0].type != "hidden") {
                    inst.input[0].focus()
                }
                $.datepicker._curInst = inst
            }
        },
        _updateDatepicker: function(inst) {
            var dims = {
                width: inst.dpDiv.width() + 4,
                height: inst.dpDiv.height() + 4
            };

            inst.dpDiv.empty().append(this._generateHTML(inst)).find("iframe.ui-datepicker-cover").css({
                width: dims.width,
                height: dims.height
            });
            var numMonths = this._getNumberOfMonths(inst);
            inst.dpDiv[(numMonths[0] != 1 || numMonths[1] != 1 ? "add" : "remove") + "Class"]("ui-datepicker-multi");
            inst.dpDiv[(this._get(inst, "isRTL") ? "add" : "remove") + "Class"]("ui-datepicker-rtl");
            if (inst.input && inst.input[0].type != "hidden" && inst == $.datepicker._curInst) {
                $(inst.input[0]).focus()
            }
        },
        _checkOffset: function(inst, offset, isFixed) {
            var pos = inst.input ? this._findPos(inst.input[0]) : null;
            var browserWidth = window.innerWidth || (document.documentElement ? document.documentElement.clientWidth : document.body.clientWidth);
            var browserHeight = window.innerHeight || (document.documentElement ? document.documentElement.clientHeight : document.body.clientHeight);
            var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft;
            var scrollY = document.documentElement.scrollTop || document.body.scrollTop;
            if (this._get(inst, "isRTL") || (offset.left + inst.dpDiv.width() - scrollX) > browserWidth) {
                offset.left = Math.max((isFixed ? 0 : scrollX), pos[0] + (inst.input ? inst.input.width() : 0) - (isFixed ? scrollX : 0) - inst.dpDiv.width() - (isFixed && $.browser.opera ? document.documentElement.scrollLeft : 0))
            } else {
                offset.left -= (isFixed ? scrollX : 0)
            }
            if ((offset.top + inst.dpDiv.height() - scrollY) > browserHeight) {
                offset.top = Math.max((isFixed ? 0 : scrollY), pos[1] - (isFixed ? scrollY : 0) - (this._inDialog ? 0 : inst.dpDiv.height()) - (isFixed && $.browser.opera ? document.documentElement.scrollTop : 0))
            } else {
                offset.top -= (isFixed ? scrollY : 0)
            }
            return offset
        },
        _findPos: function(obj) {
            while (obj && (obj.type == "hidden" || obj.nodeType != 1)) {
                obj = obj.nextSibling
            }
            var position = $(obj).offset();
            return[position.left, position.top]
        },
        _hideDatepicker: function(input, duration) {
            var inst = this._curInst;
            if (!inst || (input && inst != $.data(input, PROP_NAME))) {
                return
            }
            var rangeSelect = this._get(inst, "rangeSelect");
            if (rangeSelect && inst.stayOpen) {
                this._selectDate("#" + inst.id, this._formatDate(inst, inst.currentDay, inst.currentMonth, inst.currentYear))
            }
            inst.stayOpen = false;
            if (this._datepickerShowing) {
                duration = (duration != null ? duration : this._get(inst, "duration"));
                var showAnim = this._get(inst, "showAnim");
                var postProcess = function() {
                    $.datepicker._tidyDialog(inst)
                };

                if (duration != "" && $.effects && $.effects[showAnim]) {
                    inst.dpDiv.hide(showAnim, $.datepicker._get(inst, "showOptions"), duration, postProcess)
                } else {
                    inst.dpDiv[(duration == "" ? "hide" : (showAnim == "slideDown" ? "slideUp" : (showAnim == "fadeIn" ? "fadeOut" : "hide")))](duration, postProcess)
                }
                if (duration == "") {
                    this._tidyDialog(inst)
                }
                var onClose = this._get(inst, "onClose");
                if (onClose) {
                    onClose.apply((inst.input ? inst.input[0] : null), [(inst.input ? inst.input.val() : ""), inst])
                }
                this._datepickerShowing = false;
                this._lastInput = null;
                inst.settings.prompt = null;
                if (this._inDialog) {
                    this._dialogInput.css({
                        position: "absolute",
                        left: "0",
                        top: "-100px"
                    });
                    if ($.blockUI) {
                        $.unblockUI();
                        $("body").append(this.dpDiv)
                    }
                }
                this._inDialog = false
            }
            this._curInst = null
        },
        _tidyDialog: function(inst) {
            inst.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker");
            $("." + this._promptClass, inst.dpDiv).remove()
        },
        _checkExternalClick: function(event) {
            if (!$.datepicker._curInst) {
                return
            }
            var $target = $(event.target);
            if (($target.parents("#" + $.datepicker._mainDivId).length == 0) && !$target.hasClass($.datepicker.markerClassName) && !$target.hasClass($.datepicker._triggerClass) && $.datepicker._datepickerShowing && !($.datepicker._inDialog && $.blockUI)) {
                $.datepicker._hideDatepicker(null, "")
            }
        },
        _adjustDate: function(id, offset, period) {
            var target = $(id);
            var inst = this._getInst(target[0]);
            this._adjustInstDate(inst, offset, period);
            this._updateDatepicker(inst)
        },
        _gotoToday: function(id) {
            var target = $(id);
            var inst = this._getInst(target[0]);
            if (this._get(inst, "gotoCurrent") && inst.currentDay) {
                inst.selectedDay = inst.currentDay;
                inst.drawMonth = inst.selectedMonth = inst.currentMonth;
                inst.drawYear = inst.selectedYear = inst.currentYear
            } else {
                var date = new Date();
                inst.selectedDay = date.getDate();
                inst.drawMonth = inst.selectedMonth = date.getMonth();
                inst.drawYear = inst.selectedYear = date.getFullYear()
            }
            this._notifyChange(inst);
            this._adjustDate(target)
        },
        _selectMonthYear: function(id, select, period) {
            var target = $(id);
            var inst = this._getInst(target[0]);
            inst._selectingMonthYear = false;
            inst["selected" + (period == "M" ? "Month" : "Year")] = inst["draw" + (period == "M" ? "Month" : "Year")] = parseInt(select.options[select.selectedIndex].value, 10);
            this._notifyChange(inst);
            this._adjustDate(target)
        },
        _clickMonthYear: function(id) {
            var target = $(id);
            var inst = this._getInst(target[0]);
            if (inst.input && inst._selectingMonthYear && !$.browser.msie) {
                inst.input[0].focus()
            }
            inst._selectingMonthYear = !inst._selectingMonthYear
        },
        _changeFirstDay: function(id, day) {
            var target = $(id);
            var inst = this._getInst(target[0]);
            inst.settings.firstDay = day;
            this._updateDatepicker(inst)
        },
        _selectDay: function(id, month, year, td) {
            if ($(td).hasClass(this._unselectableClass)) {
                return
            }
            var target = $(id);
            var inst = this._getInst(target[0]);
            var rangeSelect = this._get(inst, "rangeSelect");
            if (rangeSelect) {
                inst.stayOpen = !inst.stayOpen;
                if (inst.stayOpen) {
                    $(".ui-datepicker td", inst.dpDiv).removeClass(this._currentClass);
                    $(td).addClass(this._currentClass)
                }
            }
            inst.selectedDay = inst.currentDay = $("a", td).html();
            inst.selectedMonth = inst.currentMonth = month;
            inst.selectedYear = inst.currentYear = year;
            if (inst.stayOpen) {
                inst.endDay = inst.endMonth = inst.endYear = null
            } else {
                if (rangeSelect) {
                    inst.endDay = inst.currentDay;
                    inst.endMonth = inst.currentMonth;
                    inst.endYear = inst.currentYear
                }
            }
            this._selectDate(id, this._formatDate(inst, inst.currentDay, inst.currentMonth, inst.currentYear));
            if (inst.stayOpen) {
                inst.rangeStart = this._daylightSavingAdjust(new Date(inst.currentYear, inst.currentMonth, inst.currentDay));
                this._updateDatepicker(inst)
            } else {
                if (rangeSelect) {
                    inst.selectedDay = inst.currentDay = inst.rangeStart.getDate();
                    inst.selectedMonth = inst.currentMonth = inst.rangeStart.getMonth();
                    inst.selectedYear = inst.currentYear = inst.rangeStart.getFullYear();
                    inst.rangeStart = null;
                    if (inst.inline) {
                        this._updateDatepicker(inst)
                    }
                }
            }
        },
        _clearDate: function(id) {
            var target = $(id);
            var inst = this._getInst(target[0]);
            if (this._get(inst, "mandatory")) {
                return
            }
            inst.stayOpen = false;
            inst.endDay = inst.endMonth = inst.endYear = inst.rangeStart = null;
            this._selectDate(target, "")
        },
        _selectDate: function(id, dateStr) {
            var target = $(id);
            var inst = this._getInst(target[0]);
            dateStr = (dateStr != null ? dateStr : this._formatDate(inst));
            if (this._get(inst, "rangeSelect") && dateStr) {
                dateStr = (inst.rangeStart ? this._formatDate(inst, inst.rangeStart) : dateStr) + this._get(inst, "rangeSeparator") + dateStr
            }
            if (inst.input) {
                inst.input.val(dateStr)
            }
            this._updateAlternate(inst);
            var onSelect = this._get(inst, "onSelect");
            if (onSelect) {
                onSelect.apply((inst.input ? inst.input[0] : null), [dateStr, inst])
            } else {
                if (inst.input) {
                    inst.input.trigger("change")
                }
            }
            if (inst.inline) {
                this._updateDatepicker(inst)
            } else {
                if (!inst.stayOpen) {
                    this._hideDatepicker(null, this._get(inst, "duration"));
                    this._lastInput = inst.input[0];
                    if (typeof(inst.input[0]) != "object") {
                        inst.input[0].focus()
                    }
                    this._lastInput = null
                }
            }
        },
        _updateAlternate: function(inst) {
            var altField = this._get(inst, "altField");
            if (altField) {
                var altFormat = this._get(inst, "altFormat") || this._get(inst, "dateFormat");
                var date = this._getDate(inst);
                dateStr = (isArray(date) ? (!date[0] && !date[1] ? "" : this.formatDate(altFormat, date[0], this._getFormatConfig(inst)) + this._get(inst, "rangeSeparator") + this.formatDate(altFormat, date[1] || date[0], this._getFormatConfig(inst))) : this.formatDate(altFormat, date, this._getFormatConfig(inst)));
                $(altField).each(function() {
                    $(this).val(dateStr)
                })
            }
        },
        noWeekends: function(date) {
            var day = date.getDay();
            return[(day > 0 && day < 6), ""]
        },
        iso8601Week: function(date) {
            var checkDate = new Date(date.getFullYear(), date.getMonth(), date.getDate());
            var firstMon = new Date(checkDate.getFullYear(), 1 - 1, 4);
            var firstDay = firstMon.getDay() || 7;
            firstMon.setDate(firstMon.getDate() + 1 - firstDay);
            if (firstDay < 4 && checkDate < firstMon) {
                checkDate.setDate(checkDate.getDate() - 3);
                return $.datepicker.iso8601Week(checkDate)
            } else {
                if (checkDate > new Date(checkDate.getFullYear(), 12 - 1, 28)) {
                    firstDay = new Date(checkDate.getFullYear() + 1, 1 - 1, 4).getDay() || 7;
                    if (firstDay > 4 && (checkDate.getDay() || 7) < firstDay - 3) {
                        return 1
                    }
                }
            }
            return Math.floor(((checkDate - firstMon) / 86400000) / 7) + 1
        },
        dateStatus: function(date, inst) {
            return $.datepicker.formatDate($.datepicker._get(inst, "dateStatus"), date, $.datepicker._getFormatConfig(inst))
        },
        parseDate: function(format, value, settings) {
            if (format == null || value == null) {
                throw"Invalid arguments"
            }
            value = (typeof value == "object" ? value.toString() : value + "");
            if (value == "") {
                return null
            }
            var shortYearCutoff = (settings ? settings.shortYearCutoff : null) || this._defaults.shortYearCutoff;
            var dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort;
            var dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames;
            var monthNamesShort = (settings ? settings.monthNamesShort : null) || this._defaults.monthNamesShort;
            var monthNames = (settings ? settings.monthNames : null) || this._defaults.monthNames;
            var year = -1;
            var month = -1;
            var day = -1;
            var doy = -1;
            var literal = false;
            var lookAhead = function(match) {
                var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) == match);
                if (matches) {
                    iFormat++
                }
                return matches
            };

            var getNumber = function(match) {
                lookAhead(match);
                var origSize = (match == "@" ? 14 : (match == "y" ? 4 : (match == "o" ? 3 : 2)));
                var size = origSize;
                var num = 0;
                while (size > 0 && iValue < value.length && value.charAt(iValue) >= "0" && value.charAt(iValue) <= "9") {
                    num = num * 10 + parseInt(value.charAt(iValue++), 10);
                    size--
                }
                if (size == origSize) {
                    throw"Missing number at position " + iValue
                }
                return num
            };

            var getName = function(match, shortNames, longNames) {
                var names = (lookAhead(match) ? longNames : shortNames);
                var size = 0;
                for (var j = 0; j < names.length; j++) {
                    size = Math.max(size, names[j].length)
                }
                var name = "";
                var iInit = iValue;
                while (size > 0 && iValue < value.length) {
                    name += value.charAt(iValue++);
                    for (var i = 0; i < names.length; i++) {
                        if (name == names[i]) {
                            return i + 1
                        }
                    }
                    size--
                }
                throw"Unknown name at position " + iInit
            };

            var checkLiteral = function() {
                if (value.charAt(iValue) != format.charAt(iFormat)) {
                    throw"Unexpected literal at position " + iValue
                }
                iValue++
            };

            var iValue = 0;
            for (var iFormat = 0; iFormat < format.length; iFormat++) {
                if (literal) {
                    if (format.charAt(iFormat) == "'" && !lookAhead("'")) {
                        literal = false
                    } else {
                        checkLiteral()
                    }
                } else {
                    switch (format.charAt(iFormat)) {
                        case"d":
                            day = getNumber("d");
                            break;
                        case"D":
                            getName("D", dayNamesShort, dayNames);
                            break;
                        case"o":
                            doy = getNumber("o");
                            break;
                        case"m":
                            month = getNumber("m");
                            break;
                        case"M":
                            month = getName("M", monthNamesShort, monthNames);
                            break;
                        case"y":
                            year = getNumber("y");
                            break;
                        case"@":
                            var date = new Date(getNumber("@"));
                            year = date.getFullYear();
                            month = date.getMonth() + 1;
                            day = date.getDate();
                            break;
                        case"'":
                            if (lookAhead("'")) {
                                checkLiteral()
                            } else {
                                literal = true
                            }
                            break;
                        default:
                            checkLiteral()
                    }
                }
            }
            if (year == -1) {
                year = new Date().getFullYear()
            } else {
                if (year < 100) {
                    year += new Date().getFullYear() - new Date().getFullYear() % 100 + (year <= shortYearCutoff ? 0 : -100)
                }
            }
            if (doy > -1) {
                month = 1;
                day = doy;
                do {
                    var dim = this._getDaysInMonth(year, month - 1);
                    if (day <= dim) {
                        break
                    }
                    month++;
                    day -= dim
                } while (true)
            }
            var date = this._daylightSavingAdjust(new Date(year, month - 1, day));
            if (date.getFullYear() != year || date.getMonth() + 1 != month || date.getDate() != day) {
                throw"Invalid date"
            }
            return date
        },
        ATOM: "yy-mm-dd",
        COOKIE: "D, dd M yy",
        ISO_8601: "yy-mm-dd",
        RFC_822: "D, d M y",
        RFC_850: "DD, dd-M-y",
        RFC_1036: "D, d M y",
        RFC_1123: "D, d M yy",
        RFC_2822: "D, d M yy",
        RSS: "D, d M y",
        TIMESTAMP: "@",
        W3C: "yy-mm-dd",
        formatDate: function(format, date, settings) {
            if (!date) {
                return""
            }
            var dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort;
            var dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames;
            var monthNamesShort = (settings ? settings.monthNamesShort : null) || this._defaults.monthNamesShort;
            var monthNames = (settings ? settings.monthNames : null) || this._defaults.monthNames;
            var lookAhead = function(match) {
                var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) == match);
                if (matches) {
                    iFormat++
                }
                return matches
            };

            var formatNumber = function(match, value, len) {
                var num = "" + value;
                if (lookAhead(match)) {
                    while (num.length < len) {
                        num = "0" + num
                    }
                }
                return num
            };

            var formatName = function(match, value, shortNames, longNames) {
                return(lookAhead(match) ? longNames[value] : shortNames[value])
            };

            var output = "";
            var literal = false;
            if (date) {
                for (var iFormat = 0; iFormat < format.length; iFormat++) {
                    if (literal) {
                        if (format.charAt(iFormat) == "'" && !lookAhead("'")) {
                            literal = false
                        } else {
                            output += format.charAt(iFormat)
                        }
                    } else {
                        switch (format.charAt(iFormat)) {
                            case"d":
                                output += formatNumber("d", date.getDate(), 2);
                                break;
                            case"D":
                                output += formatName("D", date.getDay(), dayNamesShort, dayNames);
                                break;
                            case"o":
                                var doy = date.getDate();
                                for (var m = date.getMonth() - 1; m >= 0; m--) {
                                    doy += this._getDaysInMonth(date.getFullYear(), m)
                                }
                                output += formatNumber("o", doy, 3);
                                break;
                            case"m":
                                output += formatNumber("m", date.getMonth() + 1, 2);
                                break;
                            case"M":
                                output += formatName("M", date.getMonth(), monthNamesShort, monthNames);
                                break;
                            case"y":
                                output += (lookAhead("y") ? date.getFullYear() : (date.getYear() % 100 < 10 ? "0" : "") + date.getYear() % 100);
                                break;
                            case"@":
                                output += date.getTime();
                                break;
                            case"'":
                                if (lookAhead("'")) {
                                    output += "'"
                                } else {
                                    literal = true
                                }
                                break;
                            default:
                                output += format.charAt(iFormat)
                        }
                    }
                }
            }
            return output
        },
        _possibleChars: function(format) {
            var chars = "";
            var literal = false;
            for (var iFormat = 0; iFormat < format.length; iFormat++) {
                if (literal) {
                    if (format.charAt(iFormat) == "'" && !lookAhead("'")) {
                        literal = false
                    } else {
                        chars += format.charAt(iFormat)
                    }
                } else {
                    switch (format.charAt(iFormat)) {
                        case"d":
                        case"m":
                        case"y":
                        case"@":
                            chars += "0123456789";
                            break;
                        case"D":
                        case"M":
                            return null;
                        case"'":
                            if (lookAhead("'")) {
                                chars += "'"
                            } else {
                                literal = true
                            }
                            break;
                        default:
                            chars += format.charAt(iFormat)
                    }
                }
            }
            return chars
        },
        _get: function(inst, name) {
            return inst.settings[name] !== undefined ? inst.settings[name] : this._defaults[name]
        },
        _setDateFromField: function(inst) {
            var dateFormat = this._get(inst, "dateFormat");
            var dates = inst.input ? inst.input.val().split(this._get(inst, "rangeSeparator")) : null;
            inst.endDay = inst.endMonth = inst.endYear = null;
            var date = defaultDate = this._getDefaultDate(inst);
            if (dates.length > 0) {
                var settings = this._getFormatConfig(inst);
                if (dates.length > 1) {
                    date = this.parseDate(dateFormat, dates[1], settings) || defaultDate;
                    inst.endDay = date.getDate();
                    inst.endMonth = date.getMonth();
                    inst.endYear = date.getFullYear()
                }
                try {
                    date = this.parseDate(dateFormat, dates[0], settings) || defaultDate
                } catch (event) {
                    this.log(event);
                    date = defaultDate
                }
            }
            inst.selectedDay = date.getDate();
            inst.drawMonth = inst.selectedMonth = date.getMonth();
            inst.drawYear = inst.selectedYear = date.getFullYear();
            inst.currentDay = (dates[0] ? date.getDate() : 0);
            inst.currentMonth = (dates[0] ? date.getMonth() : 0);
            inst.currentYear = (dates[0] ? date.getFullYear() : 0);
            this._adjustInstDate(inst)
        },
        _getDefaultDate: function(inst) {
            var date = this._determineDate(this._get(inst, "defaultDate"), new Date());
            var minDate = this._getMinMaxDate(inst, "min", true);
            var maxDate = this._getMinMaxDate(inst, "max");
            date = (minDate && date < minDate ? minDate : date);
            date = (maxDate && date > maxDate ? maxDate : date);
            return date
        },
        _determineDate: function(date, defaultDate) {
            var offsetNumeric = function(offset) {
                var date = new Date();
                date.setDate(date.getDate() + offset);
                return date
            };

            var offsetString = function(offset, getDaysInMonth) {
                var date = new Date();
                var year = date.getFullYear();
                var month = date.getMonth();
                var day = date.getDate();
                var pattern = /([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g;
                var matches = pattern.exec(offset);
                while (matches) {
                    switch (matches[2] || "d") {
                        case"d":
                        case"D":
                            day += parseInt(matches[1], 10);
                            break;
                        case"w":
                        case"W":
                            day += parseInt(matches[1], 10) * 7;
                            break;
                        case"m":
                        case"M":
                            month += parseInt(matches[1], 10);
                            day = Math.min(day, getDaysInMonth(year, month));
                            break;
                        case"y":
                        case"Y":
                            year += parseInt(matches[1], 10);
                            day = Math.min(day, getDaysInMonth(year, month));
                            break
                    }
                    matches = pattern.exec(offset)
                }
                return new Date(year, month, day)
            };

            date = (date == null ? defaultDate : (typeof date == "string" ? offsetString(date, this._getDaysInMonth) : (typeof date == "number" ? (isNaN(date) ? defaultDate : offsetNumeric(date)) : date)));
            date = (date && date.toString() == "Invalid Date" ? defaultDate : date);
            if (date) {
                date.setHours(0);
                date.setMinutes(0);
                date.setSeconds(0);
                date.setMilliseconds(0)
            }
            return this._daylightSavingAdjust(date)
        },
        _daylightSavingAdjust: function(date) {
            if (!date) {
                return null
            }
            date.setHours(date.getHours() > 12 ? date.getHours() + 2 : 0);
            return date
        },
        _setDate: function(inst, date, endDate) {
            var clear = !(date);
            var origMonth = inst.selectedMonth;
            var origYear = inst.selectedYear;
            date = this._determineDate(date, new Date());
            inst.selectedDay = inst.currentDay = date.getDate();
            inst.drawMonth = inst.selectedMonth = inst.currentMonth = date.getMonth();
            inst.drawYear = inst.selectedYear = inst.currentYear = date.getFullYear();
            if (this._get(inst, "rangeSelect")) {
                if (endDate) {
                    endDate = this._determineDate(endDate, null);
                    inst.endDay = endDate.getDate();
                    inst.endMonth = endDate.getMonth();
                    inst.endYear = endDate.getFullYear()
                } else {
                    inst.endDay = inst.currentDay;
                    inst.endMonth = inst.currentMonth;
                    inst.endYear = inst.currentYear
                }
            }
            if (origMonth != inst.selectedMonth || origYear != inst.selectedYear) {
                this._notifyChange(inst)
            }
            this._adjustInstDate(inst);
            if (inst.input) {
                inst.input.val(clear ? "" : this._formatDate(inst) + (!this._get(inst, "rangeSelect") ? "" : this._get(inst, "rangeSeparator") + this._formatDate(inst, inst.endDay, inst.endMonth, inst.endYear)))
            }
        },
        _getDate: function(inst) {
            var startDate = (!inst.currentYear || (inst.input && inst.input.val() == "") ? null : this._daylightSavingAdjust(new Date(inst.currentYear, inst.currentMonth, inst.currentDay)));
            if (this._get(inst, "rangeSelect")) {
                return[inst.rangeStart || startDate, (!inst.endYear ? inst.rangeStart || startDate : this._daylightSavingAdjust(new Date(inst.endYear, inst.endMonth, inst.endDay)))]
            } else {
                return startDate
            }
        },
        _generateHTML: function(inst) {
            var today = new Date();
            today = this._daylightSavingAdjust(new Date(today.getFullYear(), today.getMonth(), today.getDate()));
            var showStatus = this._get(inst, "showStatus");
            var initStatus = this._get(inst, "initStatus") || "&#xa0;";
            var isRTL = this._get(inst, "isRTL");
            var clear = (this._get(inst, "mandatory") ? "" : '<div class="ui-datepicker-clear"><a onclick="jQuery.datepicker._clearDate(\'#' + inst.id + "');\"" + this._addStatus(showStatus, inst.id, this._get(inst, "clearStatus"), initStatus) + ">" + this._get(inst, "clearText") + "</a></div>");
            var controls = '<div class="ui-datepicker-control">' + (isRTL ? "" : clear) + '<div class="ui-datepicker-close"><a onclick="jQuery.datepicker._hideDatepicker();"' + this._addStatus(showStatus, inst.id, this._get(inst, "closeStatus"), initStatus) + ">" + this._get(inst, "closeText") + "</a></div>" + (isRTL ? clear : "") + "</div>";
            var prompt = this._get(inst, "prompt");
            var closeAtTop = this._get(inst, "closeAtTop");
            var hideIfNoPrevNext = this._get(inst, "hideIfNoPrevNext");
            var navigationAsDateFormat = this._get(inst, "navigationAsDateFormat");
            var showBigPrevNext = this._get(inst, "showBigPrevNext");
            var numMonths = this._getNumberOfMonths(inst);
            var showCurrentAtPos = this._get(inst, "showCurrentAtPos");
            var stepMonths = this._get(inst, "stepMonths");
            var stepBigMonths = this._get(inst, "stepBigMonths");
            var isMultiMonth = (numMonths[0] != 1 || numMonths[1] != 1);
            var currentDate = this._daylightSavingAdjust((!inst.currentDay ? new Date(9999, 9, 9) : new Date(inst.currentYear, inst.currentMonth, inst.currentDay)));
            var minDate = this._getMinMaxDate(inst, "min", true);
            var maxDate = this._getMinMaxDate(inst, "max");
            var drawMonth = inst.drawMonth - showCurrentAtPos;
            var drawYear = inst.drawYear;
            if (drawMonth < 0) {
                drawMonth += 12;
                drawYear--
            }
            if (maxDate) {
                var maxDraw = this._daylightSavingAdjust(new Date(maxDate.getFullYear(), maxDate.getMonth() - numMonths[1] + 1, maxDate.getDate()));
                maxDraw = (minDate && maxDraw < minDate ? minDate : maxDraw);
                while (this._daylightSavingAdjust(new Date(drawYear, drawMonth, 1)) > maxDraw) {
                    drawMonth--;
                    if (drawMonth < 0) {
                        drawMonth = 11;
                        drawYear--
                    }
                }
            }
            var prevText = this._get(inst, "prevText");
            prevText = (!navigationAsDateFormat ? prevText : this.formatDate(prevText, this._daylightSavingAdjust(new Date(drawYear, drawMonth - stepMonths, 1)), this._getFormatConfig(inst)));
            var prevBigText = (showBigPrevNext ? this._get(inst, "prevBigText") : "");
            prevBigText = (!navigationAsDateFormat ? prevBigText : this.formatDate(prevBigText, this._daylightSavingAdjust(new Date(drawYear, drawMonth - stepBigMonths, 1)), this._getFormatConfig(inst)));
            var prev = '<div class="ui-datepicker-prev">' + (this._canAdjustMonth(inst, -1, drawYear, drawMonth) ? (showBigPrevNext ? "<a onclick=\"jQuery.datepicker._adjustDate('#" + inst.id + "', -" + stepBigMonths + ", 'M');\"" + this._addStatus(showStatus, inst.id, this._get(inst, "prevBigStatus"), initStatus) + ">" + prevBigText + "</a>" : "") + "<a onclick=\"jQuery.datepicker._adjustDate('#" + inst.id + "', -" + stepMonths + ", 'M');\"" + this._addStatus(showStatus, inst.id, this._get(inst, "prevStatus"), initStatus) + ">" + prevText + "</a>" : (hideIfNoPrevNext ? "" : (showBigPrevNext ? "<label>" + prevBigText + "</label>" : "") + "<label>" + prevText + "</label>")) + "</div>";
            var nextText = this._get(inst, "nextText");
            nextText = (!navigationAsDateFormat ? nextText : this.formatDate(nextText, this._daylightSavingAdjust(new Date(drawYear, drawMonth + stepMonths, 1)), this._getFormatConfig(inst)));
            var nextBigText = (showBigPrevNext ? this._get(inst, "nextBigText") : "");
            nextBigText = (!navigationAsDateFormat ? nextBigText : this.formatDate(nextBigText, this._daylightSavingAdjust(new Date(drawYear, drawMonth + stepBigMonths, 1)), this._getFormatConfig(inst)));
            var next = '<div class="ui-datepicker-next">' + (this._canAdjustMonth(inst, +1, drawYear, drawMonth) ? "<a onclick=\"jQuery.datepicker._adjustDate('#" + inst.id + "', +" + stepMonths + ", 'M');\"" + this._addStatus(showStatus, inst.id, this._get(inst, "nextStatus"), initStatus) + ">" + nextText + "</a>" + (showBigPrevNext ? "<a onclick=\"jQuery.datepicker._adjustDate('#" + inst.id + "', +" + stepBigMonths + ", 'M');\"" + this._addStatus(showStatus, inst.id, this._get(inst, "nextBigStatus"), initStatus) + ">" + nextBigText + "</a>" : "") : (hideIfNoPrevNext ? "" : "<label>" + nextText + "</label>" + (showBigPrevNext ? "<label>" + nextBigText + "</label>" : ""))) + "</div>";
            var currentText = this._get(inst, "currentText");
            var gotoDate = (this._get(inst, "gotoCurrent") && inst.currentDay ? currentDate : today);
            currentText = (!navigationAsDateFormat ? currentText : this.formatDate(currentText, gotoDate, this._getFormatConfig(inst)));
            var html = (closeAtTop && !inst.inline ? controls : "") + '<div class="ui-datepicker-links">' + (isRTL ? next : prev) + (this._isInRange(inst, gotoDate) ? '<div class="ui-datepicker-current"><a onclick="jQuery.datepicker._gotoToday(\'#' + inst.id + "');\"" + this._addStatus(showStatus, inst.id, this._get(inst, "currentStatus"), initStatus) + ">" + currentText + "</a></div>" : "") + (isRTL ? prev : next) + "</div>" + (prompt ? '<div class="' + this._promptClass + '"><span>' + prompt + "</span></div>" : "");
            var firstDay = parseInt(this._get(inst, "firstDay"));
            firstDay = (isNaN(firstDay) ? 0 : firstDay);
            var changeFirstDay = this._get(inst, "changeFirstDay");
            var dayNames = this._get(inst, "dayNames");
            var dayNamesShort = this._get(inst, "dayNamesShort");
            var dayNamesMin = this._get(inst, "dayNamesMin");
            var monthNames = this._get(inst, "monthNames");
            var beforeShowDay = this._get(inst, "beforeShowDay");
            var highlightWeek = this._get(inst, "highlightWeek");
            var showOtherMonths = this._get(inst, "showOtherMonths");
            var showWeeks = this._get(inst, "showWeeks");
            var calculateWeek = this._get(inst, "calculateWeek") || this.iso8601Week;
            var weekStatus = this._get(inst, "weekStatus");
            var status = (showStatus ? this._get(inst, "dayStatus") || initStatus : "");
            var dateStatus = this._get(inst, "statusForDate") || this.dateStatus;
            var endDate = inst.endDay ? this._daylightSavingAdjust(new Date(inst.endYear, inst.endMonth, inst.endDay)) : currentDate;
            var defaultDate = this._getDefaultDate(inst);
            for (var row = 0; row < numMonths[0]; row++) {
                for (var col = 0; col < numMonths[1]; col++) {
                    var selectedDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, inst.selectedDay));
                    html += '<div class="ui-datepicker-one-month' + (col == 0 ? " ui-datepicker-new-row" : "") + '">' + this._generateMonthYearHeader(inst, drawMonth, drawYear, minDate, maxDate, selectedDate, row > 0 || col > 0, showStatus, initStatus, monthNames) + '<table class="ui-datepicker" cellpadding="0" cellspacing="0"><thead><tr class="ui-datepicker-title-row">' + (showWeeks ? "<td" + this._addStatus(showStatus, inst.id, weekStatus, initStatus) + ">" + this._get(inst, "weekHeader") + "</td>" : "");
                    for (var dow = 0; dow < 7; dow++) {
                        var day = (dow + firstDay) % 7;
                        var dayStatus = (status.indexOf("DD") > -1 ? status.replace(/DD/, dayNames[day]) : status.replace(/D/, dayNamesShort[day]));
                        html += "<td" + ((dow + firstDay + 6) % 7 >= 5 ? ' class="ui-datepicker-week-end-cell"' : "") + ">" + (!changeFirstDay ? "<span" : "<a onclick=\"jQuery.datepicker._changeFirstDay('#" + inst.id + "', " + day + ');"') + this._addStatus(showStatus, inst.id, dayStatus, initStatus) + ' title="' + dayNames[day] + '">' + dayNamesMin[day] + (changeFirstDay ? "</a>" : "</span>") + "</td>"
                    }
                    html += "</tr></thead><tbody>";
                    var daysInMonth = this._getDaysInMonth(drawYear, drawMonth);
                    if (drawYear == inst.selectedYear && drawMonth == inst.selectedMonth) {
                        inst.selectedDay = Math.min(inst.selectedDay, daysInMonth)
                    }
                    var leadDays = (this._getFirstDayOfMonth(drawYear, drawMonth) - firstDay + 7) % 7;
                    var numRows = (isMultiMonth ? 6 : Math.ceil((leadDays + daysInMonth) / 7));
                    var printDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, 1 - leadDays));
                    for (var dRow = 0; dRow < numRows; dRow++) {
                        html += '<tr class="ui-datepicker-days-row">' + (showWeeks ? '<td class="ui-datepicker-week-col"' + this._addStatus(showStatus, inst.id, weekStatus, initStatus) + ">" + calculateWeek(printDate) + "</td>" : "");
                        for (var dow = 0; dow < 7; dow++) {
                            var daySettings = (beforeShowDay ? beforeShowDay.apply((inst.input ? inst.input[0] : null), [printDate]) : [true, ""]);
                            var otherMonth = (printDate.getMonth() != drawMonth);
                            var unselectable = otherMonth || !daySettings[0] || (minDate && printDate < minDate) || (maxDate && printDate > maxDate);
                            html += '<td class="ui-datepicker-days-cell' + ((dow + firstDay + 6) % 7 >= 5 ? " ui-datepicker-week-end-cell" : "") + (otherMonth ? " ui-datepicker-other-month" : "") + ((printDate.getTime() == selectedDate.getTime() && drawMonth == inst.selectedMonth && inst._keyEvent) || (defaultDate.getTime() == printDate.getTime() && defaultDate.getTime() == selectedDate.getTime()) ? " " + $.datepicker._dayOverClass : "") + (unselectable ? " " + this._unselectableClass : "") + (otherMonth && !showOtherMonths ? "" : " " + daySettings[1] + (printDate.getTime() >= currentDate.getTime() && printDate.getTime() <= endDate.getTime() ? " " + this._currentClass : "") + (printDate.getTime() == today.getTime() ? " ui-datepicker-today" : "")) + '"' + ((!otherMonth || showOtherMonths) && daySettings[2] ? ' title="' + daySettings[2] + '"' : "") + (unselectable ? (highlightWeek ? " onmouseover=\"jQuery(this).parent().addClass('" + this._weekOverClass + "');\" onmouseout=\"jQuery(this).parent().removeClass('" + this._weekOverClass + "');\"" : "") : " onmouseover=\"jQuery(this).addClass('" + this._dayOverClass + "')" + (highlightWeek ? ".parent().addClass('" + this._weekOverClass + "')" : "") + ";" + (!showStatus || (otherMonth && !showOtherMonths) ? "" : "jQuery('#ui-datepicker-status-" + inst.id + "').html('" + (dateStatus.apply((inst.input ? inst.input[0] : null), [printDate, inst]) || initStatus) + "');") + '" onmouseout="jQuery(this).removeClass(\'' + this._dayOverClass + "')" + (highlightWeek ? ".parent().removeClass('" + this._weekOverClass + "')" : "") + ";" + (!showStatus || (otherMonth && !showOtherMonths) ? "" : "jQuery('#ui-datepicker-status-" + inst.id + "').html('" + initStatus + "');") + '" onclick="jQuery.datepicker._selectDay(\'#' + inst.id + "'," + drawMonth + "," + drawYear + ', this);"') + ">" + (otherMonth ? (showOtherMonths ? printDate.getDate() : "&#xa0;") : (unselectable ? printDate.getDate() : "<a>" + printDate.getDate() + "</a>")) + "</td>";
                            printDate.setDate(printDate.getDate() + 1);
                            printDate = this._daylightSavingAdjust(printDate)
                        }
                        html += "</tr>"
                    }
                    drawMonth++;
                    if (drawMonth > 11) {
                        drawMonth = 0;
                        drawYear++
                    }
                    html += "</tbody></table></div>"
                }
            }
            html += (showStatus ? '<div style="clear: both;"></div><div id="ui-datepicker-status-' + inst.id + '" class="ui-datepicker-status">' + initStatus + "</div>" : "") + (!closeAtTop && !inst.inline ? controls : "") + '<div style="clear: both;"></div>' + ($.browser.msie && parseInt($.browser.version, 10) < 7 && !inst.inline ? '<iframe src="javascript:false;" class="ui-datepicker-cover"></iframe>' : "");
            inst._keyEvent = false;
            return html
        },
        _generateMonthYearHeader: function(inst, drawMonth, drawYear, minDate, maxDate, selectedDate, secondary, showStatus, initStatus, monthNames) {
            minDate = (inst.rangeStart && minDate && selectedDate < minDate ? selectedDate : minDate);
            var changeMonth = this._get(inst, "changeMonth");
            var changeYear = this._get(inst, "changeYear");
            var showMonthAfterYear = this._get(inst, "showMonthAfterYear");
            var html = '<div class="ui-datepicker-header">';
            var monthHtml = "";
            if (secondary || !changeMonth) {
                monthHtml += monthNames[drawMonth]
            } else {
                var inMinYear = (minDate && minDate.getFullYear() == drawYear);
                var inMaxYear = (maxDate && maxDate.getFullYear() == drawYear);
                monthHtml += '<select class="ui-datepicker-new-month" onchange="jQuery.datepicker._selectMonthYear(\'#' + inst.id + "', this, 'M');\" onclick=\"jQuery.datepicker._clickMonthYear('#" + inst.id + "');\"" + this._addStatus(showStatus, inst.id, this._get(inst, "monthStatus"), initStatus) + ">";
                for (var month = 0; month < 12; month++) {
                    if ((!inMinYear || month >= minDate.getMonth()) && (!inMaxYear || month <= maxDate.getMonth())) {
                        monthHtml += '<option value="' + month + '"' + (month == drawMonth ? ' selected="selected"' : "") + ">" + monthNames[month] + "</option>"
                    }
                }
                monthHtml += "</select>"
            }
            if (!showMonthAfterYear) {
                html += monthHtml + (secondary || changeMonth || changeYear ? "&#xa0;" : "")
            }
            if (secondary || !changeYear) {
                html += drawYear
            } else {
                var years = this._get(inst, "yearRange").split(":");
                var year = 0;
                var endYear = 0;
                if (years.length != 2) {
                    year = drawYear - 10;
                    endYear = drawYear + 10
                } else {
                    if (years[0].charAt(0) == "+" || years[0].charAt(0) == "-") {
                        year = endYear = new Date().getFullYear();
                        year += parseInt(years[0], 10);
                        endYear += parseInt(years[1], 10)
                    } else {
                        year = parseInt(years[0], 10);
                        endYear = parseInt(years[1], 10)
                    }
                }
                year = (minDate ? Math.max(year, minDate.getFullYear()) : year);
                endYear = (maxDate ? Math.min(endYear, maxDate.getFullYear()) : endYear);
                html += '<select class="ui-datepicker-new-year" onchange="jQuery.datepicker._selectMonthYear(\'#' + inst.id + "', this, 'Y');\" onclick=\"jQuery.datepicker._clickMonthYear('#" + inst.id + "');\"" + this._addStatus(showStatus, inst.id, this._get(inst, "yearStatus"), initStatus) + ">";
                for (; year <= endYear; year++) {
                    html += '<option value="' + year + '"' + (year == drawYear ? ' selected="selected"' : "") + ">" + year + "</option>"
                }
                html += "</select>"
            }
            if (showMonthAfterYear) {
                html += (secondary || changeMonth || changeYear ? "&#xa0;" : "") + monthHtml
            }
            html += "</div>";
            return html
        },
        _addStatus: function(showStatus, id, text, initStatus) {
            return(showStatus ? " onmouseover=\"jQuery('#ui-datepicker-status-" + id + "').html('" + (text || initStatus) + "');\" onmouseout=\"jQuery('#ui-datepicker-status-" + id + "').html('" + initStatus + "');\"" : "")
        },
        _adjustInstDate: function(inst, offset, period) {
            var year = inst.drawYear + (period == "Y" ? offset : 0);
            var month = inst.drawMonth + (period == "M" ? offset : 0);
            var day = Math.min(inst.selectedDay, this._getDaysInMonth(year, month)) + (period == "D" ? offset : 0);
            var date = this._daylightSavingAdjust(new Date(year, month, day));
            var minDate = this._getMinMaxDate(inst, "min", true);
            var maxDate = this._getMinMaxDate(inst, "max");
            date = (minDate && date < minDate ? minDate : date);
            date = (maxDate && date > maxDate ? maxDate : date);
            inst.selectedDay = date.getDate();
            inst.drawMonth = inst.selectedMonth = date.getMonth();
            inst.drawYear = inst.selectedYear = date.getFullYear();
            if (period == "M" || period == "Y") {
                this._notifyChange(inst)
            }
        },
        _notifyChange: function(inst) {
            var onChange = this._get(inst, "onChangeMonthYear");
            if (onChange) {
                onChange.apply((inst.input ? inst.input[0] : null), [inst.selectedYear, inst.selectedMonth + 1, inst])
            }
        },
        _getNumberOfMonths: function(inst) {
            var numMonths = this._get(inst, "numberOfMonths");
            return(numMonths == null ? [1, 1] : (typeof numMonths == "number" ? [1, numMonths] : numMonths))
        },
        _getMinMaxDate: function(inst, minMax, checkRange) {
            var date = this._determineDate(this._get(inst, minMax + "Date"), null);
            return(!checkRange || !inst.rangeStart ? date : (!date || inst.rangeStart > date ? inst.rangeStart : date))
        },
        _getDaysInMonth: function(year, month) {
            return 32 - new Date(year, month, 32).getDate()
        },
        _getFirstDayOfMonth: function(year, month) {
            return new Date(year, month, 1).getDay()
        },
        _canAdjustMonth: function(inst, offset, curYear, curMonth) {
            var numMonths = this._getNumberOfMonths(inst);
            var date = this._daylightSavingAdjust(new Date(curYear, curMonth + (offset < 0 ? offset : numMonths[1]), 1));
            if (offset < 0) {
                date.setDate(this._getDaysInMonth(date.getFullYear(), date.getMonth()))
            }
            return this._isInRange(inst, date)
        },
        _isInRange: function(inst, date) {
            var newMinDate = (!inst.rangeStart ? null : this._daylightSavingAdjust(new Date(inst.selectedYear, inst.selectedMonth, inst.selectedDay)));
            newMinDate = (newMinDate && inst.rangeStart < newMinDate ? inst.rangeStart : newMinDate);
            var minDate = newMinDate || this._getMinMaxDate(inst, "min");
            var maxDate = this._getMinMaxDate(inst, "max");
            return((!minDate || date >= minDate) && (!maxDate || date <= maxDate))
        },
        _getFormatConfig: function(inst) {
            var shortYearCutoff = this._get(inst, "shortYearCutoff");
            shortYearCutoff = (typeof shortYearCutoff != "string" ? shortYearCutoff : new Date().getFullYear() % 100 + parseInt(shortYearCutoff, 10));
            return{
                shortYearCutoff: shortYearCutoff,
                dayNamesShort: this._get(inst, "dayNamesShort"),
                dayNames: this._get(inst, "dayNames"),
                monthNamesShort: this._get(inst, "monthNamesShort"),
                monthNames: this._get(inst, "monthNames")
            }
        },
        _formatDate: function(inst, day, month, year) {
            if (!day) {
                inst.currentDay = inst.selectedDay;
                inst.currentMonth = inst.selectedMonth;
                inst.currentYear = inst.selectedYear
            }
            var date = (day ? (typeof day == "object" ? day : this._daylightSavingAdjust(new Date(year, month, day))) : this._daylightSavingAdjust(new Date(inst.currentYear, inst.currentMonth, inst.currentDay)));
            return this.formatDate(this._get(inst, "dateFormat"), date, this._getFormatConfig(inst))
        }
    });
    function extendRemove(target, props) {
        $.extend(target, props);
        for (var name in props) {
            if (props[name] == null || props[name] == undefined) {
                target[name] = props[name]
            }
        }
        return target
    }
    function isArray(a) {
        return(a && (($.browser.safari && typeof a == "object" && a.length) || (a.constructor && a.constructor.toString().match(/\Array\(\)/))))
    }
    $.fn.datepicker = function(options) {
        if (!$.datepicker.initialized) {
            $(document.body).append($.datepicker.dpDiv).mousedown($.datepicker._checkExternalClick);
            $.datepicker.initialized = true
        }
        var otherArgs = Array.prototype.slice.call(arguments, 1);
        if (typeof options == "string" && (options == "isDisabled" || options == "getDate")) {
            return $.datepicker["_" + options + "Datepicker"].apply($.datepicker, [this[0]].concat(otherArgs))
        }
        return this.each(function() {
            typeof options == "string" ? $.datepicker["_" + options + "Datepicker"].apply($.datepicker, [this].concat(otherArgs)) : $.datepicker._attachDatepicker(this, options)
        })
    };

    $.datepicker = new Datepicker();
    $.datepicker.initialized = false;
    $.datepicker.uuid = new Date().getTime();
    $.datepicker.version = "1.6"
})(jQuery);
(function(C) {
    C.effects = C.effects || {};

    C.extend(C.effects, {
        version: "1.6",
        save: function(F, G) {
            for (var E = 0; E < G.length; E++) {
                if (G[E] !== null) {
                    C.data(F[0], "ec.storage." + G[E], F[0].style[G[E]])
                }
            }
        },
        restore: function(F, G) {
            for (var E = 0; E < G.length; E++) {
                if (G[E] !== null) {
                    F.css(G[E], C.data(F[0], "ec.storage." + G[E]))
                }
            }
        },
        setMode: function(E, F) {
            if (F == "toggle") {
                F = E.is(":hidden") ? "show" : "hide"
            }
            return F
        },
        getBaseline: function(F, G) {
            var H, E;
            switch (F[0]) {
                case"top":
                    H = 0;
                    break;
                case"middle":
                    H = 0.5;
                    break;
                case"bottom":
                    H = 1;
                    break;
                default:
                    H = F[0] / G.height
            }
            switch (F[1]) {
                case"left":
                    E = 0;
                    break;
                case"center":
                    E = 0.5;
                    break;
                case"right":
                    E = 1;
                    break;
                default:
                    E = F[1] / G.width
            }
            return{
                x: E,
                y: H
            }
        },
        createWrapper: function(F) {
            if (F.parent().attr("id") == "fxWrapper") {
                return F
            }
            var E = {
                width: F.outerWidth({
                    margin: true
                }),
                height: F.outerHeight({
                    margin: true
                }),
                "float": F.css("float")
            };

            F.wrap('<div id="fxWrapper" style="font-size:100%;background:transparent;border:none;margin:0;padding:0"></div>');
            var I = F.parent();
            if (F.css("position") == "static") {
                I.css({
                    position: "relative"
                });
                F.css({
                    position: "relative"
                })
            } else {
                var H = F.css("top");
                if (isNaN(parseInt(H))) {
                    H = "auto"
                }
                var G = F.css("left");
                if (isNaN(parseInt(G))) {
                    G = "auto"
                }
                I.css({
                    position: F.css("position"),
                    top: H,
                    left: G,
                    zIndex: F.css("z-index")
                }).show();
                F.css({
                    position: "relative",
                    top: 0,
                    left: 0
                })
            }
            I.css(E);
            return I
        },
        removeWrapper: function(E) {
            if (E.parent().attr("id") == "fxWrapper") {
                return E.parent().replaceWith(E)
            }
            return E
        },
        setTransition: function(F, G, E, H) {
            H = H || {};

            C.each(G, function(J, I) {
                unit = F.cssUnit(I);
                if (unit[0] > 0) {
                    H[I] = unit[0] * E + unit[1]
                }
            });
            return H
        },
        animateClass: function(G, H, J, I) {
            var E = (typeof J == "function" ? J : (I ? I : null));
            var F = (typeof J == "object" ? J : null);
            return this.each(function() {
                var O = {};

                var M = C(this);
                var N = M.attr("style") || "";
                if (typeof N == "object") {
                    N = N["cssText"]
                }
                if (G.toggle) {
                    M.hasClass(G.toggle) ? G.remove = G.toggle : G.add = G.toggle
                }
                var K = C.extend({}, (document.defaultView ? document.defaultView.getComputedStyle(this, null) : this.currentStyle));
                if (G.add) {
                    M.addClass(G.add)
                }
                if (G.remove) {
                    M.removeClass(G.remove)
                }
                var L = C.extend({}, (document.defaultView ? document.defaultView.getComputedStyle(this, null) : this.currentStyle));
                if (G.add) {
                    M.removeClass(G.add)
                }
                if (G.remove) {
                    M.addClass(G.remove)
                }
                for (var P in L) {
                    if (typeof L[P] != "function" && L[P] && P.indexOf("Moz") == -1 && P.indexOf("length") == -1 && L[P] != K[P] && (P.match(/color/i) || (!P.match(/color/i) && !isNaN(parseInt(L[P], 10)))) && (K.position != "static" || (K.position == "static" && !P.match(/left|top|bottom|right/)))) {
                        O[P] = L[P]
                    }
                }
                M.animate(O, H, F, function() {
                    if (typeof C(this).attr("style") == "object") {
                        C(this).attr("style")["cssText"] = "";
                        C(this).attr("style")["cssText"] = N
                    } else {
                        C(this).attr("style", N)
                    }
                    if (G.add) {
                        C(this).addClass(G.add)
                    }
                    if (G.remove) {
                        C(this).removeClass(G.remove)
                    }
                    if (E) {
                        E.apply(this, arguments)
                    }
                })
            })
        }
    });
    C.fn.extend({
        _show: C.fn.show,
        _hide: C.fn.hide,
        __toggle: C.fn.toggle,
        _addClass: C.fn.addClass,
        _removeClass: C.fn.removeClass,
        _toggleClass: C.fn.toggleClass,
        effect: function(E, G, F, H) {
            return C.effects[E] ? C.effects[E].call(this, {
                method: E,
                options: G || {},
                duration: F,
                callback: H
            }) : null
        },
        show: function() {
            if (!arguments[0] || (arguments[0].constructor == Number || /(slow|normal|fast)/.test(arguments[0]))) {
                return this._show.apply(this, arguments)
            } else {
                var E = arguments[1] || {};

                E["mode"] = "show";
                return this.effect.apply(this, [arguments[0], E, arguments[2] || E.duration, arguments[3] || E.callback])
            }
        },
        hide: function() {
            if (!arguments[0] || (arguments[0].constructor == Number || /(slow|normal|fast)/.test(arguments[0]))) {
                return this._hide.apply(this, arguments)
            } else {
                var E = arguments[1] || {};

                E["mode"] = "hide";
                return this.effect.apply(this, [arguments[0], E, arguments[2] || E.duration, arguments[3] || E.callback])
            }
        },
        toggle: function() {
            if (!arguments[0] || (arguments[0].constructor == Number || /(slow|normal|fast)/.test(arguments[0])) || (arguments[0].constructor == Function)) {
                return this.__toggle.apply(this, arguments)
            } else {
                var E = arguments[1] || {};

                E["mode"] = "toggle";
                return this.effect.apply(this, [arguments[0], E, arguments[2] || E.duration, arguments[3] || E.callback])
            }
        },
        addClass: function(F, E, H, G) {
            return E ? C.effects.animateClass.apply(this, [{
                    add: F
                }, E, H, G]) : this._addClass(F)
        },
        removeClass: function(F, E, H, G) {
            return E ? C.effects.animateClass.apply(this, [{
                    remove: F
                }, E, H, G]) : this._removeClass(F)
        },
        toggleClass: function(F, E, H, G) {
            return E ? C.effects.animateClass.apply(this, [{
                    toggle: F
                }, E, H, G]) : this._toggleClass(F)
        },
        morph: function(E, G, F, I, H) {
            return C.effects.animateClass.apply(this, [{
                    add: G,
                    remove: E
                }, F, I, H])
        },
        switchClass: function() {
            return this.morph.apply(this, arguments)
        },
        cssUnit: function(E) {
            var F = this.css(E), G = [];
            C.each(["em", "px", "%", "pt"], function(H, I) {
                if (F.indexOf(I) > 0) {
                    G = [parseFloat(F), I]
                }
            });
            return G
        }
    });
    C.each(["backgroundColor", "borderBottomColor", "borderLeftColor", "borderRightColor", "borderTopColor", "color", "outlineColor"], function(F, E) {
        C.fx.step[E] = function(G) {
            if (G.state == 0) {
                G.start = D(G.elem, E);
                G.end = B(G.end)
            }
            G.elem.style[E] = "rgb(" + [Math.max(Math.min(parseInt((G.pos * (G.end[0] - G.start[0])) + G.start[0]), 255), 0), Math.max(Math.min(parseInt((G.pos * (G.end[1] - G.start[1])) + G.start[1]), 255), 0), Math.max(Math.min(parseInt((G.pos * (G.end[2] - G.start[2])) + G.start[2]), 255), 0)].join(",") + ")"
        }
    });
    function B(F) {
        var E;
        if (F && F.constructor == Array && F.length == 3) {
            return F
        }
        if (E = /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(F)) {
            return[parseInt(E[1]), parseInt(E[2]), parseInt(E[3])]
        }
        if (E = /rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(F)) {
            return[parseFloat(E[1]) * 2.55, parseFloat(E[2]) * 2.55, parseFloat(E[3]) * 2.55]
        }
        if (E = /#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(F)) {
            return[parseInt(E[1], 16), parseInt(E[2], 16), parseInt(E[3], 16)]
        }
        if (E = /#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(F)) {
            return[parseInt(E[1] + E[1], 16), parseInt(E[2] + E[2], 16), parseInt(E[3] + E[3], 16)]
        }
        if (E = /rgba\(0, 0, 0, 0\)/.exec(F)) {
            return A["transparent"]
        }
        return A[C.trim(F).toLowerCase()]
    }
    function D(G, E) {
        var F;
        do {
            F = C.curCSS(G, E);
            if (F != "" && F != "transparent" || C.nodeName(G, "body")) {
                break
            }
            E = "backgroundColor"
        } while (G = G.parentNode);
        return B(F)
    }
    var A = {
        aqua: [0, 255, 255],
        azure: [240, 255, 255],
        beige: [245, 245, 220],
        black: [0, 0, 0],
        blue: [0, 0, 255],
        brown: [165, 42, 42],
        cyan: [0, 255, 255],
        darkblue: [0, 0, 139],
        darkcyan: [0, 139, 139],
        darkgrey: [169, 169, 169],
        darkgreen: [0, 100, 0],
        darkkhaki: [189, 183, 107],
        darkmagenta: [139, 0, 139],
        darkolivegreen: [85, 107, 47],
        darkorange: [255, 140, 0],
        darkorchid: [153, 50, 204],
        darkred: [139, 0, 0],
        darksalmon: [233, 150, 122],
        darkviolet: [148, 0, 211],
        fuchsia: [255, 0, 255],
        gold: [255, 215, 0],
        green: [0, 128, 0],
        indigo: [75, 0, 130],
        khaki: [240, 230, 140],
        lightblue: [173, 216, 230],
        lightcyan: [224, 255, 255],
        lightgreen: [144, 238, 144],
        lightgrey: [211, 211, 211],
        lightpink: [255, 182, 193],
        lightyellow: [255, 255, 224],
        lime: [0, 255, 0],
        magenta: [255, 0, 255],
        maroon: [128, 0, 0],
        navy: [0, 0, 128],
        olive: [128, 128, 0],
        orange: [255, 165, 0],
        pink: [255, 192, 203],
        purple: [128, 0, 128],
        violet: [128, 0, 128],
        red: [255, 0, 0],
        silver: [192, 192, 192],
        white: [255, 255, 255],
        yellow: [255, 255, 0],
        transparent: [255, 255, 255]
    };

    C.easing.jswing = C.easing.swing;
    C.extend(C.easing, {
        def: "easeOutQuad",
        swing: function(F, G, E, I, H) {
            return C.easing[C.easing.def](F, G, E, I, H)
        },
        easeInQuad: function(F, G, E, I, H) {
            return I * (G /= H) * G + E
        },
        easeOutQuad: function(F, G, E, I, H) {
            return-I * (G /= H) * (G - 2) + E
        },
        easeInOutQuad: function(F, G, E, I, H) {
            if ((G /= H / 2) < 1) {
                return I / 2 * G * G + E
            }
            return-I / 2 * ((--G) * (G - 2) - 1) + E
        },
        easeInCubic: function(F, G, E, I, H) {
            return I * (G /= H) * G * G + E
        },
        easeOutCubic: function(F, G, E, I, H) {
            return I * ((G = G / H - 1) * G * G + 1) + E
        },
        easeInOutCubic: function(F, G, E, I, H) {
            if ((G /= H / 2) < 1) {
                return I / 2 * G * G * G + E
            }
            return I / 2 * ((G -= 2) * G * G + 2) + E
        },
        easeInQuart: function(F, G, E, I, H) {
            return I * (G /= H) * G * G * G + E
        },
        easeOutQuart: function(F, G, E, I, H) {
            return-I * ((G = G / H - 1) * G * G * G - 1) + E
        },
        easeInOutQuart: function(F, G, E, I, H) {
            if ((G /= H / 2) < 1) {
                return I / 2 * G * G * G * G + E
            }
            return-I / 2 * ((G -= 2) * G * G * G - 2) + E
        },
        easeInQuint: function(F, G, E, I, H) {
            return I * (G /= H) * G * G * G * G + E
        },
        easeOutQuint: function(F, G, E, I, H) {
            return I * ((G = G / H - 1) * G * G * G * G + 1) + E
        },
        easeInOutQuint: function(F, G, E, I, H) {
            if ((G /= H / 2) < 1) {
                return I / 2 * G * G * G * G * G + E
            }
            return I / 2 * ((G -= 2) * G * G * G * G + 2) + E
        },
        easeInSine: function(F, G, E, I, H) {
            return-I * Math.cos(G / H * (Math.PI / 2)) + I + E
        },
        easeOutSine: function(F, G, E, I, H) {
            return I * Math.sin(G / H * (Math.PI / 2)) + E
        },
        easeInOutSine: function(F, G, E, I, H) {
            return-I / 2 * (Math.cos(Math.PI * G / H) - 1) + E
        },
        easeInExpo: function(F, G, E, I, H) {
            return(G == 0) ? E : I * Math.pow(2, 10 * (G / H - 1)) + E
        },
        easeOutExpo: function(F, G, E, I, H) {
            return(G == H) ? E + I : I * (-Math.pow(2, -10 * G / H) + 1) + E
        },
        easeInOutExpo: function(F, G, E, I, H) {
            if (G == 0) {
                return E
            }
            if (G == H) {
                return E + I
            }
            if ((G /= H / 2) < 1) {
                return I / 2 * Math.pow(2, 10 * (G - 1)) + E
            }
            return I / 2 * (-Math.pow(2, -10 * --G) + 2) + E
        },
        easeInCirc: function(F, G, E, I, H) {
            return-I * (Math.sqrt(1 - (G /= H) * G) - 1) + E
        },
        easeOutCirc: function(F, G, E, I, H) {
            return I * Math.sqrt(1 - (G = G / H - 1) * G) + E
        },
        easeInOutCirc: function(F, G, E, I, H) {
            if ((G /= H / 2) < 1) {
                return-I / 2 * (Math.sqrt(1 - G * G) - 1) + E
            }
            return I / 2 * (Math.sqrt(1 - (G -= 2) * G) + 1) + E
        },
        easeInElastic: function(F, H, E, L, K) {
            var I = 1.70158;
            var J = 0;
            var G = L;
            if (H == 0) {
                return E
            }
            if ((H /= K) == 1) {
                return E + L
            }
            if (!J) {
                J = K * 0.3
            }
            if (G < Math.abs(L)) {
                G = L;
                var I = J / 4
            } else {
                var I = J / (2 * Math.PI) * Math.asin(L / G)
            }
            return-(G * Math.pow(2, 10 * (H -= 1)) * Math.sin((H * K - I) * (2 * Math.PI) / J)) + E
        },
        easeOutElastic: function(F, H, E, L, K) {
            var I = 1.70158;
            var J = 0;
            var G = L;
            if (H == 0) {
                return E
            }
            if ((H /= K) == 1) {
                return E + L
            }
            if (!J) {
                J = K * 0.3
            }
            if (G < Math.abs(L)) {
                G = L;
                var I = J / 4
            } else {
                var I = J / (2 * Math.PI) * Math.asin(L / G)
            }
            return G * Math.pow(2, -10 * H) * Math.sin((H * K - I) * (2 * Math.PI) / J) + L + E
        },
        easeInOutElastic: function(F, H, E, L, K) {
            var I = 1.70158;
            var J = 0;
            var G = L;
            if (H == 0) {
                return E
            }
            if ((H /= K / 2) == 2) {
                return E + L
            }
            if (!J) {
                J = K * (0.3 * 1.5)
            }
            if (G < Math.abs(L)) {
                G = L;
                var I = J / 4
            } else {
                var I = J / (2 * Math.PI) * Math.asin(L / G)
            }
            if (H < 1) {
                return-0.5 * (G * Math.pow(2, 10 * (H -= 1)) * Math.sin((H * K - I) * (2 * Math.PI) / J)) + E
            }
            return G * Math.pow(2, -10 * (H -= 1)) * Math.sin((H * K - I) * (2 * Math.PI) / J) * 0.5 + L + E
        },
        easeInBack: function(F, G, E, J, I, H) {
            if (H == undefined) {
                H = 1.70158
            }
            return J * (G /= I) * G * ((H + 1) * G - H) + E
        },
        easeOutBack: function(F, G, E, J, I, H) {
            if (H == undefined) {
                H = 1.70158
            }
            return J * ((G = G / I - 1) * G * ((H + 1) * G + H) + 1) + E
        },
        easeInOutBack: function(F, G, E, J, I, H) {
            if (H == undefined) {
                H = 1.70158
            }
            if ((G /= I / 2) < 1) {
                return J / 2 * (G * G * (((H *= (1.525)) + 1) * G - H)) + E
            }
            return J / 2 * ((G -= 2) * G * (((H *= (1.525)) + 1) * G + H) + 2) + E
        },
        easeInBounce: function(F, G, E, I, H) {
            return I - C.easing.easeOutBounce(F, H - G, 0, I, H) + E
        },
        easeOutBounce: function(F, G, E, I, H) {
            if ((G /= H) < (1 / 2.75)) {
                return I * (7.5625 * G * G) + E
            } else {
                if (G < (2 / 2.75)) {
                    return I * (7.5625 * (G -= (1.5 / 2.75)) * G + 0.75) + E
                } else {
                    if (G < (2.5 / 2.75)) {
                        return I * (7.5625 * (G -= (2.25 / 2.75)) * G + 0.9375) + E
                    } else {
                        return I * (7.5625 * (G -= (2.625 / 2.75)) * G + 0.984375) + E
                    }
                }
            }
        },
        easeInOutBounce: function(F, G, E, I, H) {
            if (G < H / 2) {
                return C.easing.easeInBounce(F, G * 2, 0, I, H) * 0.5 + E
            }
            return C.easing.easeOutBounce(F, G * 2 - H, 0, I, H) * 0.5 + I * 0.5 + E
        }
    })
})(jQuery);
(function(A) {
    A.effects.blind = function(B) {
        return this.queue(function() {
            var D = A(this), C = ["position", "top", "left"];
            var H = A.effects.setMode(D, B.options.mode || "hide");
            var G = B.options.direction || "vertical";
            A.effects.save(D, C);
            D.show();
            var J = A.effects.createWrapper(D).css({
                overflow: "hidden"
            });
            var E = (G == "vertical") ? "height" : "width";
            var I = (G == "vertical") ? J.height() : J.width();
            if (H == "show") {
                J.css(E, 0)
            }
            var F = {};

            F[E] = H == "show" ? I : 0;
            J.animate(F, B.duration, B.options.easing, function() {
                if (H == "hide") {
                    D.hide()
                }
                A.effects.restore(D, C);
                A.effects.removeWrapper(D);
                if (B.callback) {
                    B.callback.apply(D[0], arguments)
                }
                D.dequeue()
            })
        })
    }
})(jQuery);
(function(A) {
    A.effects.bounce = function(B) {
        return this.queue(function() {
            var E = A(this), K = ["position", "top", "left"];
            var J = A.effects.setMode(E, B.options.mode || "effect");
            var M = B.options.direction || "up";
            var C = B.options.distance || 20;
            var D = B.options.times || 5;
            var G = B.duration || 250;
            if (/show|hide/.test(J)) {
                K.push("opacity")
            }
            A.effects.save(E, K);
            E.show();
            A.effects.createWrapper(E);
            var F = (M == "up" || M == "down") ? "top" : "left";
            var O = (M == "up" || M == "left") ? "pos" : "neg";
            var C = B.options.distance || (F == "top" ? E.outerHeight({
                margin: true
            }) / 3 : E.outerWidth({
                margin: true
            }) / 3);
            if (J == "show") {
                E.css("opacity", 0).css(F, O == "pos" ? -C : C)
            }
            if (J == "hide") {
                C = C / (D * 2)
            }
            if (J != "hide") {
                D--
            }
            if (J == "show") {
                var H = {
                    opacity: 1
                };

                H[F] = (O == "pos" ? "+=" : "-=") + C;
                E.animate(H, G / 2, B.options.easing);
                C = C / 2;
                D--
            }
            for (var I = 0; I < D; I++) {
                var N = {}, L = {};

                N[F] = (O == "pos" ? "-=" : "+=") + C;
                L[F] = (O == "pos" ? "+=" : "-=") + C;
                E.animate(N, G / 2, B.options.easing).animate(L, G / 2, B.options.easing);
                C = (J == "hide") ? C * 2 : C / 2
            }
            if (J == "hide") {
                var H = {
                    opacity: 0
                };

                H[F] = (O == "pos" ? "-=" : "+=") + C;
                E.animate(H, G / 2, B.options.easing, function() {
                    E.hide();
                    A.effects.restore(E, K);
                    A.effects.removeWrapper(E);
                    if (B.callback) {
                        B.callback.apply(this, arguments)
                    }
                })
            } else {
                var N = {}, L = {};

                N[F] = (O == "pos" ? "-=" : "+=") + C;
                L[F] = (O == "pos" ? "+=" : "-=") + C;
                E.animate(N, G / 2, B.options.easing).animate(L, G / 2, B.options.easing, function() {
                    A.effects.restore(E, K);
                    A.effects.removeWrapper(E);
                    if (B.callback) {
                        B.callback.apply(this, arguments)
                    }
                })
            }
            E.queue("fx", function() {
                E.dequeue()
            });
            E.dequeue()
        })
    }
})(jQuery);
(function(A) {
    A.effects.clip = function(B) {
        return this.queue(function() {
            var F = A(this), J = ["position", "top", "left", "height", "width"];
            var I = A.effects.setMode(F, B.options.mode || "hide");
            var K = B.options.direction || "vertical";
            A.effects.save(F, J);
            F.show();
            var C = A.effects.createWrapper(F).css({
                overflow: "hidden"
            });
            var E = F[0].tagName == "IMG" ? C : F;
            var G = {
                size: (K == "vertical") ? "height" : "width",
                position: (K == "vertical") ? "top" : "left"
            };

            var D = (K == "vertical") ? E.height() : E.width();
            if (I == "show") {
                E.css(G.size, 0);
                E.css(G.position, D / 2)
            }
            var H = {};

            H[G.size] = I == "show" ? D : 0;
            H[G.position] = I == "show" ? 0 : D / 2;
            E.animate(H, {
                queue: false,
                duration: B.duration,
                easing: B.options.easing,
                complete: function() {
                    if (I == "hide") {
                        F.hide()
                    }
                    A.effects.restore(F, J);
                    A.effects.removeWrapper(F);
                    if (B.callback) {
                        B.callback.apply(F[0], arguments)
                    }
                    F.dequeue()
                }
            })
        })
    }
})(jQuery);
(function(A) {
    A.effects.drop = function(B) {
        return this.queue(function() {
            var E = A(this), D = ["position", "top", "left", "opacity"];
            var I = A.effects.setMode(E, B.options.mode || "hide");
            var H = B.options.direction || "left";
            A.effects.save(E, D);
            E.show();
            A.effects.createWrapper(E);
            var F = (H == "up" || H == "down") ? "top" : "left";
            var C = (H == "up" || H == "left") ? "pos" : "neg";
            var J = B.options.distance || (F == "top" ? E.outerHeight({
                margin: true
            }) / 2 : E.outerWidth({
                margin: true
            }) / 2);
            if (I == "show") {
                E.css("opacity", 0).css(F, C == "pos" ? -J : J)
            }
            var G = {
                opacity: I == "show" ? 1 : 0
            };

            G[F] = (I == "show" ? (C == "pos" ? "+=" : "-=") : (C == "pos" ? "-=" : "+=")) + J;
            E.animate(G, {
                queue: false,
                duration: B.duration,
                easing: B.options.easing,
                complete: function() {
                    if (I == "hide") {
                        E.hide()
                    }
                    A.effects.restore(E, D);
                    A.effects.removeWrapper(E);
                    if (B.callback) {
                        B.callback.apply(this, arguments)
                    }
                    E.dequeue()
                }
            })
        })
    }
})(jQuery);
(function(A) {
    A.effects.explode = function(B) {
        return this.queue(function() {
            var I = B.options.pieces ? Math.round(Math.sqrt(B.options.pieces)) : 3;
            var E = B.options.pieces ? Math.round(Math.sqrt(B.options.pieces)) : 3;
            B.options.mode = B.options.mode == "toggle" ? (A(this).is(":visible") ? "hide" : "show") : B.options.mode;
            var H = A(this).show().css("visibility", "hidden");
            var J = H.offset();
            J.top -= parseInt(H.css("marginTop")) || 0;
            J.left -= parseInt(H.css("marginLeft")) || 0;
            var G = H.outerWidth(true);
            var C = H.outerHeight(true);
            for (var F = 0; F < I; F++) {
                for (var D = 0; D < E; D++) {
                    H.clone().appendTo("body").wrap("<div></div>").css({
                        position: "absolute",
                        visibility: "visible",
                        left: -D * (G / E),
                        top: -F * (C / I)
                    }).parent().addClass("effects-explode").css({
                        position: "absolute",
                        overflow: "hidden",
                        width: G / E,
                        height: C / I,
                        left: J.left + D * (G / E) + (B.options.mode == "show" ? (D - Math.floor(E / 2)) * (G / E) : 0),
                        top: J.top + F * (C / I) + (B.options.mode == "show" ? (F - Math.floor(I / 2)) * (C / I) : 0),
                        opacity: B.options.mode == "show" ? 0 : 1
                    }).animate({
                        left: J.left + D * (G / E) + (B.options.mode == "show" ? 0 : (D - Math.floor(E / 2)) * (G / E)),
                        top: J.top + F * (C / I) + (B.options.mode == "show" ? 0 : (F - Math.floor(I / 2)) * (C / I)),
                        opacity: B.options.mode == "show" ? 1 : 0
                    }, B.duration || 500)
                }
            }
            setTimeout(function() {
                B.options.mode == "show" ? H.css({
                    visibility: "visible"
                }) : H.css({
                    visibility: "visible"
                }).hide();
                if (B.callback) {
                    B.callback.apply(H[0])
                }
                H.dequeue();
                A(".effects-explode").remove()
            }, B.duration || 500)
        })
    }
})(jQuery);
(function(A) {
    A.effects.fold = function(B) {
        return this.queue(function() {
            var E = A(this), J = ["position", "top", "left"];
            var G = A.effects.setMode(E, B.options.mode || "hide");
            var N = B.options.size || 15;
            var M = !(!B.options.horizFirst);
            A.effects.save(E, J);
            E.show();
            var D = A.effects.createWrapper(E).css({
                overflow: "hidden"
            });
            var H = ((G == "show") != M);
            var F = H ? ["width", "height"] : ["height", "width"];
            var C = H ? [D.width(), D.height()] : [D.height(), D.width()];
            var I = /([0-9]+)%/.exec(N);
            if (I) {
                N = parseInt(I[1]) / 100 * C[G == "hide" ? 0 : 1]
            }
            if (G == "show") {
                D.css(M ? {
                    height: 0,
                    width: N
                } : {
                    height: N,
                    width: 0
                })
            }
            var L = {}, K = {};

            L[F[0]] = G == "show" ? C[0] : N;
            K[F[1]] = G == "show" ? C[1] : 0;
            D.animate(L, B.duration / 2, B.options.easing).animate(K, B.duration / 2, B.options.easing, function() {
                if (G == "hide") {
                    E.hide()
                }
                A.effects.restore(E, J);
                A.effects.removeWrapper(E);
                if (B.callback) {
                    B.callback.apply(E[0], arguments)
                }
                E.dequeue()
            })
        })
    }
})(jQuery);
(function(A) {
    A.effects.highlight = function(B) {
        return this.queue(function() {
            var E = A(this), D = ["backgroundImage", "backgroundColor", "opacity"];
            var H = A.effects.setMode(E, B.options.mode || "show");
            var C = B.options.color || "#ffff99";
            var G = E.css("backgroundColor");
            A.effects.save(E, D);
            E.show();
            E.css({
                backgroundImage: "none",
                backgroundColor: C
            });
            var F = {
                backgroundColor: G
            };

            if (H == "hide") {
                F["opacity"] = 0
            }
            E.animate(F, {
                queue: false,
                duration: B.duration,
                easing: B.options.easing,
                complete: function() {
                    if (H == "hide") {
                        E.hide()
                    }
                    A.effects.restore(E, D);
                    if (H == "show" && A.browser.msie) {
                        this.style.removeAttribute("filter")
                    }
                    if (B.callback) {
                        B.callback.apply(this, arguments)
                    }
                    E.dequeue()
                }
            })
        })
    }
})(jQuery);
(function(A) {
    A.effects.pulsate = function(B) {
        return this.queue(function() {
            var D = A(this);
            var F = A.effects.setMode(D, B.options.mode || "show");
            var E = B.options.times || 5;
            if (F == "hide") {
                E--
            }
            if (D.is(":hidden")) {
                D.css("opacity", 0);
                D.show();
                D.animate({
                    opacity: 1
                }, B.duration / 2, B.options.easing);
                E = E - 2
            }
            for (var C = 0; C < E; C++) {
                D.animate({
                    opacity: 0
                }, B.duration / 2, B.options.easing).animate({
                    opacity: 1
                }, B.duration / 2, B.options.easing)
            }
            if (F == "hide") {
                D.animate({
                    opacity: 0
                }, B.duration / 2, B.options.easing, function() {
                    D.hide();
                    if (B.callback) {
                        B.callback.apply(this, arguments)
                    }
                })
            } else {
                D.animate({
                    opacity: 0
                }, B.duration / 2, B.options.easing).animate({
                    opacity: 1
                }, B.duration / 2, B.options.easing, function() {
                    if (B.callback) {
                        B.callback.apply(this, arguments)
                    }
                })
            }
            D.queue("fx", function() {
                D.dequeue()
            });
            D.dequeue()
        })
    }
})(jQuery);
(function(A) {
    A.effects.puff = function(B) {
        return this.queue(function() {
            var F = A(this);
            var C = A.extend(true, {}, B.options);
            var H = A.effects.setMode(F, B.options.mode || "hide");
            var G = parseInt(B.options.percent) || 150;
            C.fade = true;
            var E = {
                height: F.height(),
                width: F.width()
            };

            var D = G / 100;
            F.from = (H == "hide") ? E : {
                height: E.height * D,
                width: E.width * D
            };

            C.from = F.from;
            C.percent = (H == "hide") ? G : 100;
            C.mode = H;
            F.effect("scale", C, B.duration, B.callback);
            F.dequeue()
        })
    };

    A.effects.scale = function(B) {
        return this.queue(function() {
            var G = A(this);
            var D = A.extend(true, {}, B.options);
            var J = A.effects.setMode(G, B.options.mode || "effect");
            var H = parseInt(B.options.percent) || (parseInt(B.options.percent) == 0 ? 0 : (J == "hide" ? 0 : 100));
            var I = B.options.direction || "both";
            var C = B.options.origin;
            if (J != "effect") {
                D.origin = C || ["middle", "center"];
                D.restore = true
            }
            var F = {
                height: G.height(),
                width: G.width()
            };

            G.from = B.options.from || (J == "show" ? {
                height: 0,
                width: 0
            } : F);
            var E = {
                y: I != "horizontal" ? (H / 100) : 1,
                x: I != "vertical" ? (H / 100) : 1
            };

            G.to = {
                height: F.height * E.y,
                width: F.width * E.x
            };

            if (B.options.fade) {
                if (J == "show") {
                    G.from.opacity = 0;
                    G.to.opacity = 1
                }
                if (J == "hide") {
                    G.from.opacity = 1;
                    G.to.opacity = 0
                }
            }
            D.from = G.from;
            D.to = G.to;
            D.mode = J;
            G.effect("size", D, B.duration, B.callback);
            G.dequeue()
        })
    };

    A.effects.size = function(B) {
        return this.queue(function() {
            var C = A(this), N = ["position", "top", "left", "width", "height", "overflow", "opacity"];
            var M = ["position", "top", "left", "overflow", "opacity"];
            var J = ["width", "height", "overflow"];
            var P = ["fontSize"];
            var K = ["borderTopWidth", "borderBottomWidth", "paddingTop", "paddingBottom"];
            var F = ["borderLeftWidth", "borderRightWidth", "paddingLeft", "paddingRight"];
            var G = A.effects.setMode(C, B.options.mode || "effect");
            var I = B.options.restore || false;
            var E = B.options.scale || "both";
            var O = B.options.origin;
            var D = {
                height: C.height(),
                width: C.width()
            };

            C.from = B.options.from || D;
            C.to = B.options.to || D;
            if (O) {
                var H = A.effects.getBaseline(O, D);
                C.from.top = (D.height - C.from.height) * H.y;
                C.from.left = (D.width - C.from.width) * H.x;
                C.to.top = (D.height - C.to.height) * H.y;
                C.to.left = (D.width - C.to.width) * H.x
            }
            var L = {
                from: {
                    y: C.from.height / D.height,
                    x: C.from.width / D.width
                },
                to: {
                    y: C.to.height / D.height,
                    x: C.to.width / D.width
                }
            };

            if (E == "box" || E == "both") {
                if (L.from.y != L.to.y) {
                    N = N.concat(K);
                    C.from = A.effects.setTransition(C, K, L.from.y, C.from);
                    C.to = A.effects.setTransition(C, K, L.to.y, C.to)
                }
                if (L.from.x != L.to.x) {
                    N = N.concat(F);
                    C.from = A.effects.setTransition(C, F, L.from.x, C.from);
                    C.to = A.effects.setTransition(C, F, L.to.x, C.to)
                }
            }
            if (E == "content" || E == "both") {
                if (L.from.y != L.to.y) {
                    N = N.concat(P);
                    C.from = A.effects.setTransition(C, P, L.from.y, C.from);
                    C.to = A.effects.setTransition(C, P, L.to.y, C.to)
                }
            }
            A.effects.save(C, I ? N : M);
            C.show();
            A.effects.createWrapper(C);
            C.css("overflow", "hidden").css(C.from);
            if (E == "content" || E == "both") {
                K = K.concat(["marginTop", "marginBottom"]).concat(P);
                F = F.concat(["marginLeft", "marginRight"]);
                J = N.concat(K).concat(F);
                C.find("*[width]").each(function() {
                    child = A(this);
                    if (I) {
                        A.effects.save(child, J)
                    }
                    var Q = {
                        height: child.height(),
                        width: child.width()
                    };

                    child.from = {
                        height: Q.height * L.from.y,
                        width: Q.width * L.from.x
                    };

                    child.to = {
                        height: Q.height * L.to.y,
                        width: Q.width * L.to.x
                    };

                    if (L.from.y != L.to.y) {
                        child.from = A.effects.setTransition(child, K, L.from.y, child.from);
                        child.to = A.effects.setTransition(child, K, L.to.y, child.to)
                    }
                    if (L.from.x != L.to.x) {
                        child.from = A.effects.setTransition(child, F, L.from.x, child.from);
                        child.to = A.effects.setTransition(child, F, L.to.x, child.to)
                    }
                    child.css(child.from);
                    child.animate(child.to, B.duration, B.options.easing, function() {
                        if (I) {
                            A.effects.restore(child, J)
                        }
                    })
                })
            }
            C.animate(C.to, {
                queue: false,
                duration: B.duration,
                easing: B.options.easing,
                complete: function() {
                    if (G == "hide") {
                        C.hide()
                    }
                    A.effects.restore(C, I ? N : M);
                    A.effects.removeWrapper(C);
                    if (B.callback) {
                        B.callback.apply(this, arguments)
                    }
                    C.dequeue()
                }
            })
        })
    }
})(jQuery);
(function(A) {
    A.effects.shake = function(B) {
        return this.queue(function() {
            var E = A(this), K = ["position", "top", "left"];
            var J = A.effects.setMode(E, B.options.mode || "effect");
            var M = B.options.direction || "left";
            var C = B.options.distance || 20;
            var D = B.options.times || 3;
            var G = B.duration || B.options.duration || 140;
            A.effects.save(E, K);
            E.show();
            A.effects.createWrapper(E);
            var F = (M == "up" || M == "down") ? "top" : "left";
            var O = (M == "up" || M == "left") ? "pos" : "neg";
            var H = {}, N = {}, L = {};

            H[F] = (O == "pos" ? "-=" : "+=") + C;
            N[F] = (O == "pos" ? "+=" : "-=") + C * 2;
            L[F] = (O == "pos" ? "-=" : "+=") + C * 2;
            E.animate(H, G, B.options.easing);
            for (var I = 1; I < D; I++) {
                E.animate(N, G, B.options.easing).animate(L, G, B.options.easing)
            }
            E.animate(N, G, B.options.easing).animate(H, G / 2, B.options.easing, function() {
                A.effects.restore(E, K);
                A.effects.removeWrapper(E);
                if (B.callback) {
                    B.callback.apply(this, arguments)
                }
            });
            E.queue("fx", function() {
                E.dequeue()
            });
            E.dequeue()
        })
    }
})(jQuery);
(function(A) {
    A.effects.slide = function(B) {
        return this.queue(function() {
            var E = A(this), D = ["position", "top", "left"];
            var I = A.effects.setMode(E, B.options.mode || "show");
            var H = B.options.direction || "left";
            A.effects.save(E, D);
            E.show();
            A.effects.createWrapper(E).css({
                overflow: "hidden"
            });
            var F = (H == "up" || H == "down") ? "top" : "left";
            var C = (H == "up" || H == "left") ? "pos" : "neg";
            var J = B.options.distance || (F == "top" ? E.outerHeight({
                margin: true
            }) : E.outerWidth({
                margin: true
            }));
            if (I == "show") {
                E.css(F, C == "pos" ? -J : J)
            }
            var G = {};

            G[F] = (I == "show" ? (C == "pos" ? "+=" : "-=") : (C == "pos" ? "-=" : "+=")) + J;
            E.animate(G, {
                queue: false,
                duration: B.duration,
                easing: B.options.easing,
                complete: function() {
                    if (I == "hide") {
                        E.hide()
                    }
                    A.effects.restore(E, D);
                    A.effects.removeWrapper(E);
                    if (B.callback) {
                        B.callback.apply(this, arguments)
                    }
                    E.dequeue()
                }
            })
        })
    }
})(jQuery);
(function(A) {
    A.effects.transfer = function(B) {
        return this.queue(function() {
            var E = A(this);
            var G = A.effects.setMode(E, B.options.mode || "effect");
            var F = A(B.options.to);
            var C = E.offset();
            var D = A('<div class="ui-effects-transfer"></div>').appendTo(document.body);
            if (B.options.className) {
                D.addClass(B.options.className)
            }
            D.addClass(B.options.className);
            D.css({
                top: C.top,
                left: C.left,
                height: E.outerHeight() - parseInt(D.css("borderTopWidth")) - parseInt(D.css("borderBottomWidth")),
                width: E.outerWidth() - parseInt(D.css("borderLeftWidth")) - parseInt(D.css("borderRightWidth")),
                position: "absolute"
            });
            C = F.offset();
            animation = {
                top: C.top,
                left: C.left,
                height: F.outerHeight() - parseInt(D.css("borderTopWidth")) - parseInt(D.css("borderBottomWidth")),
                width: F.outerWidth() - parseInt(D.css("borderLeftWidth")) - parseInt(D.css("borderRightWidth"))
            };

            D.animate(animation, B.duration, B.options.easing, function() {
                D.remove();
                if (B.callback) {
                    B.callback.apply(E[0], arguments)
                }
                E.dequeue()
            })
        })
    }
})(jQuery);
eval(function(p, a, c, k, e, d) {
    e = function(c) {
        return(c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36))
    };

    if (!''.replace(/^/, String)) {
        while (c--) {
            d[e(c)] = k[c] || e(c)
        }
        k = [function(e) {
                return d[e]
            }];
        e = function() {
            return'\\w+'
        };

        c = 1
    }
    ;
    while (c--) {
        if (k[c]) {
            p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c])
        }
    }
    return p
}('b.1T.1U({1h:9(m){y a.1j(9(){1o b.1t(a,m)})}});7(!25.r){6 r={w:9(1V){}}}b.1t=9(1f,m){6 2=m||{};2.V=2.V||"4";2.N=2.N||"1h";2.1a=2.1a||"1h-1X";2.k=2.k||"1Z";2.i=2.i||"1b";2.K=2.K||"20";2.10=2.10||23;2.M=2.M||G;2.S=2.S||G;2.T=2.T||G;2.q=2.q||G;6 W=1f.c;6 e=0;6 1d=G;6 z=0;6 $f=b(1f);6 $5=1y(2);6 $4=1A(2);$f.12().1r($4).1r($5);1s();$4.I(9(){7(!1d){$5.21()}}).17(9(){7($5.1W(\':14\')){1d=1E;$5.22()}}).29(9(d){28(d.26){Z 24:d.19();1e(-1);O;Z 2a:d.19();1e(1);O;Z 13:d.19();$(\'3.\'+2.k).1R(\'I\');O;Z 27:E();O}}).1g(9(){7($5.1q(\':14\')&&z>0){7(2.q)r.w(\'5 14 1P 1Q 17\')}j{7((b.1c.1S&&b.1c.1Y.2p(0,1)<8)||b.1c.2z){7(v.2w.2v(\'c\').2u(\'1z\')==-1){E()}j{$4.17()}}j{E()}}});9 E(){z=0;$5.12()}9 1s(){$5.2t(1O($4.h(\'c\'))).12();6 s=$4.D(\'s\');7($5.1x()>2.10){$5.s(16(s)+16($4.D(\'2s\'))+16($4.D(\'2x\')));$5.1x(2.10)}j $5.s(s)}9 1y(m){6 5=v.A("2A");$5=b(5);$5.h(\'c\',W+\'1z\');$5.l(m.1a);$5.D(\'2B\',\'2y\');y $5}9 1A(m){7(2.V=="1p"){6 4=v.A("1p");6 $4=b(4);$4.h("c",W+"1w");$4.l(m.N);$4.h("1D",$f.h("1C"))}j{6 4=v.A("4");6 $4=b(4);$4.h("c",W+"1w");$4.h("2r","2q");$4.l(m.N);$4.h("2b","2g");$4.h("1v","1v");$4.h("1D",$f.h("1C"));$4.D("s",$f.D("s"))}y $4}9 1e(18){6 g=b("3",$5);7(!g||g.X==0)y G;C=0;2h($(g[C]).1J(2.K))C++;e+=18;7($(g[e]).1J(2.K))e+=18;7(e<C){(2.M?e=g.Q()-1:e=g.Q())}j 7(2.M&&e>g.Q()-1){e=C}j 7(e>g.Q()){e=C}1I(g,e);g.J(2.k);b(g[e]).l(2.k)}9 1I(p,e){6 n=b(p[e]).u(0);6 p=$5.u(0);7(n.U+n.1u>p.R+p.1G){p.R=n.U+n.1u-p.1G}j 7(n.U<p.R){p.R=n.U}}9 1l(){6 3=b("3."+2.i,$5).u(0);6 15=(\'\'+3.c).2f(\'Y\');6 n=15[15.X-1];7(2.S){$f.u(0).2e=$(\'3\',$5).2c(3);2.T={2d:$f.o()};2.S(2.T)}j{$f.o(n);$f.2i()}7(2.V==\'1p\')$4.t($(3).t());j $4.o($(3).t());y 1E}9 2j(){y $f.o()}9 2o(){y $4.o()}9 1O(11){6 B=1o 1F();6 F=v.A(\'F\');B=$f.1k(\'1B\');7(B.X==0){6 L=1o 1F();L=$f.1k(\'2n\');2m(x=0;x<L.X;x++){B=$("#"+L[x].c).1k(\'1B\');6 3=v.A(\'3\');3.1i(\'c\',11+\'Y\'+$(a).o());3.1n=$("#"+L[x].c).h(\'2k\');3.2l=2.K;F.1m(3);B.1j(9(){6 3=v.A(\'3\');3.1i(\'c\',11+\'Y\'+$(a).o());3.1n=$(a).t();7($(a).1q(\':1b\')){$4.t($(a).t());$(3).l(2.i)}F.1m(3);$(3).1M(9(d){z=1;7(2.q)r.w(\'1K H : \'+a.c);b(d.P,$5).l(2.k)}).1H(9(d){z=-1;7(2.q)r.w(\'1L H : \'+a.c);b(d.P,$5).J(2.k)}).I(9(d){6 1N=$(\'3.\'+2.k,$5).u(0);7(2.q)r.w(\'I H :\'+a.c);$(\'3.\'+2.i,$5).J(2.i);$(a).l(2.i);1l();$f.u(0).1g();E()})})}}j B.1j(9(){6 3=v.A(\'3\');3.1i(\'c\',11+\'Y\'+$(a).o());3.1n=$(a).t();7($(a).1q(\':1b\')){$4.o($(a).t());$(3).l(2.i)}F.1m(3);$(3).1M(9(d){z=1;7(2.q)r.w(\'1K H : \'+a.c);b(d.P,$5).l(2.k)}).1H(9(d){z=-1;7(2.q)r.w(\'1L H : \'+a.c);b(d.P,$5).J(2.k)}).I(9(d){6 1N=$(\'3.\'+2.k,$5).u(0);7(2.q)r.w(\'I H :\'+a.c);$(\'3.\'+2.i,$5).J(2.i);$(a).l(2.i);1l();$f.u(0).1g();E()})});y F}};', 62, 162, '||opt|li|input|container|var|if||function|this|jQuery|id|event|active|select|lis|attr|currentClass|else|hoverClass|addClass|options|el|val|list|debug|console|width|html|get|document|log||return|hasfocus|createElement|select_options|firstchoice|css|hideMe|ul|false|on|click|removeClass|groupClass|select_optgroups|loopnoStep|inputClass|break|target|size|scrollTop|onChangeCallback|onChangeParams|offsetTop|inputType|elm_id|length|_|case|maxHeight|parentid|hide||visible|ar|parseInt|focus|step|preventDefault|containerClass|selected|browser|inFocus|moveSelect|selectobj|blur|selectbox|setAttribute|each|children|setCurrent|appendChild|innerHTML|new|span|is|before|init|SelectBox|offsetHeight|readonly|_input|height|setupContainer|_container|setupInput|option|tabindex|tabIndex|true|Array|clientHeight|mouseout|scroll|hasClass|over|out|mouseover|fl|getSelectOptions|and|has|trigger|msie|fn|extend|msg|not|wrapper|version|current|groupname|toggle|show|200|38|window|keyCode||switch|keydown|40|autocomplete|index|selectedVal|selectedIndex|split|off|while|change|getCurrentSelected|label|className|for|optgroup|getCurrentValue|substr|text|type|paddingRight|append|indexOf|getAttribute|activeElement|paddingLeft|none|safari|div|display'.split('|'), 0, {}))